Skip to content

Commit a265de1

Browse files
committed
minor symfony#5522 [create_framework] Add missing extract() 2nd arg (kenjis)
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
2 parents c0676f3 + 0905395 commit a265de1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

create_framework/http-kernel-controller-resolver.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ Let's conclude with the new version of our framework::
160160

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

0 commit comments

Comments
 (0)