Skip to content

Conversation

@sandermarechal
Copy link
Contributor

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? no
Fixed tickets
License MIT
Doc PR

The DIC is not able to parse XML configs where the container configuration is not the default namespaces. Such configurations are used for example, in the DoctrineBundle test suite.

This PR adds a failing unittest for that case.

I have tried to fix the issue as well, but I didn't find a good way of fixing it without rewriting the entire XmlFileLoader using DOM instead of SimpleXML. Hence I am just submitting the test case, in the hope that someone smarter than me can fix this issue.

@sandermarechal
Copy link
Contributor Author

I have started working on a PR that uses DOM instead of SimpleXML for the XmlFileLoader

@sandermarechal
Copy link
Contributor Author

These unittests have been included in #9350

@sandermarechal
Copy link
Contributor Author

Oops. Shouldn't close this. It's still an open bug.

@fabpot
Copy link
Member

fabpot commented Mar 3, 2014

Closing as the commit is included in #9350

@fabpot fabpot closed this Mar 3, 2014
fabpot added a commit that referenced this pull request Apr 2, 2014
… namespace support (sandermarechal, romainneutron)

This PR was merged into the 2.5-dev branch.

Discussion
----------

[DependencyInjection] Use DOM instead of SimpleXML for namespace support

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | #9345
| License       | MIT

This PR replaces #9350

Commits
-------

a3c60c8 [DependencyInjection] Deprecate SimpleXMLElement
33c91f9 [DependencyInjection] Use DOM instead of SimpleXML for namespace support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants