-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Routing condition bugfix #10002
Conversation
@@ -167,6 +168,9 @@ protected function parseImport(RouteCollection $collection, \DOMElement $node, $ | |||
if (null !== $host) { | |||
$subCollection->setHost($host); | |||
} | |||
if(null !== $condition) { |
There was a problem hiding this comment.
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
.
Can you add some unit tests as well? |
Yes, I will add some tests and correct the formatting! |
…en importing sub routes in the YamlFileLoader.
…en importing sub routes in the XmlFileLoader.
Done, does the testing setup makes sense? Don't wanted to duplicate everything. |
@fabpot can you please merge this PR? |
Thank you @marco-jantke. |
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
[Routing] Fixed inheriting of condition to sub routes for xml and yaml configuration.