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

Updated routing articles to Symfony 4#8657

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
weaverryan merged 2 commits intosymfony:masterfromjaviereguiluz:update_routing
Nov 17, 2017

Conversation

@javiereguiluz
Copy link
Member

@javiereguiluzjaviereguiluz commentedNov 14, 2017
edited
Loading

Thisfixes#8656.

Copy link
Member

@ycerutoyceruto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Nice!

What about promoting thecontroller: key config in YAML format?

@javiereguiluz
Copy link
MemberAuthor

@yceruto that makes a lot of sense to me! Updated. Thanks.

Copy link
Member

@ycerutoyceruto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Awesome! Thanks!

$collection->add('contact', new Route(
'/contact', array(
'_controller' => 'AcmeDemoBundle:Main:contact',
'_controller' => 'App\Controller\DefaultController::contact',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

It's minor, and not worth delaying things because it's such a not important format, but in PHP, using the[DefaultController::class, 'contact'] is friendlier.

@weaverryan
Copy link
Member

Brilliant! That new controller: key is great!

@weaverryanweaverryan merged commit419353b intosymfony:masterNov 17, 2017
weaverryan added a commit that referenced this pull requestNov 17, 2017
This PR was squashed before being merged into the master branch (closes#8657).Discussion----------Updated routing articles to Symfony 4Thisfixes#8656.Commits-------419353b Used the modern "controller" key in YAML routes6d7415f Updated routing articles to Symfony 4
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@weaverryanweaverryanweaverryan left review comments

+1 more reviewer

@ycerutoycerutoyceruto approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Update all routing/* articles to Symfony 4

4 participants

@javiereguiluz@weaverryan@yceruto@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp