Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita265de1

Browse files
committed
minor#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 argSee previous page:http://symfony.com/doc/2.3/create_framework/templating.htmlThe 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 parentsc0676f3 +0905395 commita265de1

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)

[8]ページ先頭

©2009-2025 Movatter.jp