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

[FrameworkBundle] Fix Routing\DelegatingLoader#24304

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

Conversation

@nicolas-grekas
Copy link
Member

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets-
LicenseMIT
Doc PR-

Spotted while reviewing: the default controller is not always a string, so parsing should only be done conditionally.


foreach ($collection->all()as$route) {
if (!$controller =$route->getDefault('_controller')) {
if (!is_string($controller =$route->getDefault('_controller')) || !$controller) {
Copy link
Member

Choose a reason for hiding this comment

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

Worth a test :)

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

test added

@nicolas-grekasnicolas-grekas merged commita69c1b2 intosymfony:2.7Sep 25, 2017
nicolas-grekas added a commit that referenced this pull requestSep 25, 2017
…ekas)This PR was merged into the 2.7 branch.Discussion----------[FrameworkBundle] Fix Routing\DelegatingLoader| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -Spotted while reviewing: the default controller is not always a string, so parsing should only be done conditionally.Commits-------a69c1b2 [FrameworkBundle] Fix Routing\DelegatingLoader
@nicolas-grekasnicolas-grekas deleted the fix-delegating-loader branchSeptember 25, 2017 09:27
This was referencedOct 5, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot left review comments

@javiereguiluzjaviereguiluzjaviereguiluz approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

4 participants

@nicolas-grekas@fabpot@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp