Commit 6d7cf048 authored by Fabien Potencier's avatar Fabien Potencier

merged branch ShaunK/patch-1 (PR #461)

Commits
-------

a9da5bbc Fixed missing use statement in Forwards example

Discussion
----------

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.
parents ee00393c a9da5bbc
......@@ -616,6 +616,7 @@ Forwards
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::
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\HttpKernelInterface;
$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