-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DependencyInjection] remove deprecated code in YamlFileLoader class #22750
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
Conversation
59c7813
to
493e290
Compare
@@ -795,8 +795,6 @@ private function checkDefinition($id, array $definition, $file) | ||
if ($throw) { | ||
throw new InvalidArgumentException(sprintf('The configuration key "%s" is unsupported for definition "%s" in "%s". Allowed configuration keys are "%s".', $key, $id, $file, implode('", "', $keywords))); | ||
} | ||
|
||
@trigger_error(sprintf('The configuration key "%s" is unsupported for service definition "%s" in "%s". Allowed configuration keys are "%s". The YamlFileLoader object will raise an exception instead in Symfony 4.0 when detecting an unsupported service configuration key.', $key, $id, $file, implode('", "', $keywords)), E_USER_DEPRECATED); |
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.
The deprecation message mentions an exception that will be risen in 4.0. That's not yet happening with this change, is it?
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 not yet! The PR is WIP.
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.
@hhamon I suggest you to work on each deprecation one by one by repalcing them with proper exception instead of first removing all deprecations. It will lower the risk of forgetting to add an exception
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.
@stof okay thanks for the advise ;)
rebase needed to see tests green |
493e290
to
e4c7fda
Compare
WIP or not WIP? (personally I'd prefer not using WIP in the title of PRs, that's only noise :P ) |
@nicolas-grekas it's WIP. I can close it and reopen when it's ready if you prefer. |
3943661
to
5a71da0
Compare
@nicolas-grekas no more WIP :) |
f020901
to
854efce
Compare
Thank you @hhamon. |
…leLoader class (hhamon) This PR was merged into the 4.0-dev branch. Discussion ---------- [DependencyInjection] remove deprecated code in YamlFileLoader class | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | yes | Deprecations? | yes | Tests pass? | yes | Fixed tickets | ~ | License | MIT | Doc PR | ~ Commits ------- 854efce [DependencyInjection] remove deprecated YAML configuration features and syntax
Uh oh!
There was an error while loading. Please reload this page.