Skip to content

Commit

Permalink
minor #5522 [create_framework] Add missing extract() 2nd arg (kenjis)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.3 branch.

Discussion
----------

[create_framework] Add missing extract() 2nd arg

See previous page: http://symfony.com/doc/2.3/create_framework/templating.html

The code is `extract($request->attributes->all(), EXTR_SKIP);`.

In this page, suddenly `EXTR_SKIP` is missing. I don't know why.

Commits
-------

0905395 Fix code
  • Loading branch information
wouterj committed Aug 20, 2015
2 parents c0676f3 + 0905395 commit a265de1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion create_framework/http-kernel-controller-resolver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ Let's conclude with the new version of our framework::

function render_template(Request $request)
{
extract($request->attributes->all());
extract($request->attributes->all(), EXTR_SKIP);
ob_start();
include sprintf(__DIR__.'/../src/pages/%s.php', $_route);

Expand Down

0 comments on commit a265de1

Please sign in to comment.