[DependencyInjection] Deprecate unsupported attributes/elements for alias#17323
[DependencyInjection] Deprecate unsupported attributes/elements for alias#17323GuilhemN wants to merge 2 commits into
Conversation
|
The yaml test is not in the scope of this PR... Anyway, I'm not sure we should cry if these attributees are set, they will be ignored anyway.. |
There was a problem hiding this comment.
Any reason getAttribute() is used here instead of hasAttribute()?
There was a problem hiding this comment.
No I didn't know this function
There was a problem hiding this comment.
I'd improve the second sentence slightly in all these deprecation messages and say "The XmlFileLoader object will raise an exception in Symfony 4.0, instead of silently ignoring unsupported attributes.".
Currently the message says "will raise an exception instead" but it doesn't say instead of what.
|
👍 |
There was a problem hiding this comment.
missing documentation for the $file parameter
|
I would remove "object" from "The YamlFileLoader object will [...]" (same for the XmlFileLoader messages). Status: Needs work |
There was a problem hiding this comment.
There seem to be trailing witespaces.
|
👍 Status: Reviewed |
|
ping |
|
Thank you @Ener-Getick. |
Following #17133, this PR deprecates using unsupported keywords on alias definition.
For example the following examples will trigger deprecations: