8000 [Routing] improve loaders by Tobion · Pull Request #6172 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Routing] improve loaders #6172

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

Merged
merged 10 commits into from
Dec 11, 2012
Merged

[Routing] improve loaders #6172

merged 10 commits into from
Dec 11, 2012

Conversation

Tobion
Copy link
Contributor
@Tobion Tobion commented Dec 2, 2012

BC break: no

Main points:

  • fixed Xml loader that could not handle namespace prefixes but is valid xml
  • fixed Yaml loader where some nonsesense configs were not validated correctly like an imported resource with a pattern key.

Added tests for all. Some refactoring + a few tweaks like better exception messages and more consistency between Xml loader and yaml loader. See also commits.

@Tobion
Copy link
Contributor Author
Tobion commented Dec 7, 2012

@fabpot this is ready

@Tobion
Copy link
Contributor Author
Tobion commented Dec 11, 2012

@fabpot rebased. Please don't squash to one big commit where one does not see what changed why.

@fabpot
Copy link
Member
fabpot commented Dec 11, 2012

I only squash when most commits are CS fixes and feedback.

@Tobion
Copy link
Contributor Author
Tobion commented Dec 11, 2012

Well, you squashed #6022 so it's not possible to revert a specific deprecation.

fabpot added a commit that referenced this pull request Dec 11, 2012
This PR was merged into the master branch.

Commits
-------

237bbd0 fixed and refactored YamlFileLoader in the same sense as the XmlFileLoader
392d785 removed covers annotation from loader tests and unneeded use statements
45987eb added tests for the previous XmlFileLoader fixes
b20d6a7 ensure id, pattern and resource are specified
8361b5a refactor the XMlFileLoader
83fc5ff fix namespace handling in xml loader; it could not handle prefixes
1a60a3c make resource and key attributes required in xsd
02e01b9 improve exception messages in xml loader
51fbffe remove unneeded cast
358e9c4 fix some phpdoc

Discussion
----------

[Routing] improve loaders

BC break: no

Main points:
- fixed Xml loader that could not handle namespace prefixes but is valid xml
- fixed Yaml loader where some nonsesense configs were not validated correctly like an imported resource with a pattern key.

Added tests for all. Some refactoring + a few tweaks like better exception messages and more consistency between Xml loader and yaml loader. See also commits.

---------------------------------------------------------------------------

by Tobion at 2012-12-07T18:16:08Z

@fabpot this is ready

---------------------------------------------------------------------------

by Tobion at 2012-12-11T17:30:10Z

@fabpot rebased. Please don't squash to one big commit where one does not see what changed why.

---------------------------------------------------------------------------

by fabpot at 2012-12-11T17:32:40Z

I only squash when most commits are CS fixes and feedback.

---------------------------------------------------------------------------

by Tobion at 2012-12-11T17:37:49Z

Well, you squashed #6022 so it's not possible to revert a specific deprecation.
@fabpot fabpot merged commit 237bbd0 into symfony:master Dec 11, 2012
@vicb
Copy link
Contributor
vicb commented Dec 12, 2012

@Tobion great changes ! Could you please try to follow [Form] [Validator] [FrameworkBundle] added something for commit messages to make the history easier to search.

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
0