Commit a9da5bbc authored by Shaun Kiernan's avatar Shaun Kiernan

Fixed missing use statement in Forwards example

The example provided in the Forwards section didn't work for me as presented. I added a use statement to the example to make it clearer.
parent ee00393c
...@@ -616,6 +616,7 @@ Forwards ...@@ -616,6 +616,7 @@ Forwards
When you want to delegate the rendering to another controller, without a When you want to delegate the rendering to another controller, without a
round-trip to the browser (as for a redirect), use an internal sub-request:: round-trip to the browser (as for a redirect), use an internal sub-request::
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\HttpKernelInterface;
$app->get('/', function () use ($app) { $app->get('/', function () use ($app) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment