-
Notifications
You must be signed in to change notification settings - Fork 378
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
Deprecate XML routing file in favor of YAML #925
Deprecate XML routing file in favor of YAML #925
Conversation
Resources/config/routing.yaml
Outdated
methods: | ||
- GET | ||
requirements: | ||
filter: '[A-z0-9_\-]*' |
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.
If a dash is at the last position of a character match you don't need to escape it, so you could use [A-z0-9_-]*
.
Resources/config/routing.xml
Outdated
<requirement key="path">.+</requirement> | ||
</route> | ||
</routes> | ||
</routes> |
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.
Missing new line here :)
Resources/config/routing.yaml
Outdated
@@ -0,0 +1,23 @@ | |||
--- |
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.
Why?
cd13162
to
f4c4af4
Compare
@rpkamp @Pierstoval Comments addressed; thanks! |
UPGRADE.md
Outdated
@@ -1,5 +1,10 @@ | |||
# Upgrade | |||
|
|||
## 1.7.5 |
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.
In terms of semver, deprecations should come in minor versions, not patch versions, is it a problem if you need to push these changes to 1.8.0 instead of 1.7.5?
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.
Nope, though it looks like we've broken this rule a bunch in prior patch releases. :-(
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.
Ok, well if it's a bugfix it's totally fine 😆
f4c4af4
to
81f9856
Compare
Deprecating the XML routing file in favor of YAML enables providing a more user-friendly format for the Symfony Flex recipe, and YAML is, IMHO, generally more user-friendly for this bundle as a stand-alone package, as well.
The old
routing.xml
file remains, to provide backward compatibility for users, but instead of containing routes it simply imports the newrouting.yaml
file. The XML file is deprecation in theUPGRADE.md
file and can be safely removed from the2.x
branch entirely.The installation RST documentation has been updated to use the YAML routing varient, as well.