Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Routing condition bugfix #10002

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed

Routing condition bugfix #10002

wants to merge 6 commits into from

Conversation

m3co-code
Copy link
Contributor

[Routing] Fixed inheriting of condition to sub routes for xml and yaml configuration.

@@ -167,6 +168,9 @@ protected function parseImport(RouteCollection $collection, \DOMElement $node, $
if (null !== $host) {
$subCollection->setHost($host);
}
if(null !== $condition) {
Copy link
Member

Choose a reason for hiding this comment

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

you must add a space after if.

@fabpot
Copy link
Member

fabpot commented Jan 13, 2014

Can you add some unit tests as well?

@m3co-code
Copy link
Contributor Author

Yes, I will add some tests and correct the formatting!

@m3co-code
Copy link
Contributor Author

Done, does the testing setup makes sense? Don't wanted to duplicate everything.
Is it intented that the configuration paramaters from the "parent" route are overriding those of the imported sub routes?

@Koc
Copy link
Contributor

Koc commented Jan 24, 2014

@fabpot can you please merge this PR?

@fabpot
Copy link
Member

fabpot commented Jan 24, 2014

Thank you @marco-jantke.

fabpot added a commit that referenced this pull request Jan 24, 2014
This PR was submitted for the 2.4-dev branch but it was merged into the 2.4 branch instead (closes #10002).

Discussion
----------

Routing condition bugfix

[Routing] Fixed inheriting of condition to sub routes for xml and yaml configuration.

Commits
-------

bb7e15e Routing condition bugfix
@fabpot fabpot closed this Jan 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants