Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[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

Merged
merged 1 commit into from
May 21, 2017

Conversation

hhamon
Copy link
Contributor

@hhamon hhamon commented May 18, 2017

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

@@ -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);
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

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

Copy link
Contributor Author

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 ;)

@hhamon hhamon changed the title [DependencyInjection] remove deprecated code in YamlFileLoader class [WIP] [DependencyInjection] remove deprecated code in YamlFileLoader class May 18, 2017
@nicolas-grekas
Copy link
Member

rebase needed to see tests green

@nicolas-grekas nicolas-grekas added this to the 4.0 milestone May 18, 2017
@hhamon hhamon force-pushed the remove-deprecated-code-di branch from 493e290 to e4c7fda Compare May 18, 2017 14:25
@nicolas-grekas
Copy link
Member

WIP or not WIP? (personally I'd prefer not using WIP in the title of PRs, that's only noise :P )

@hhamon
Copy link
Contributor Author

hhamon commented May 18, 2017

@nicolas-grekas it's WIP. I can close it and reopen when it's ready if you prefer.

@hhamon hhamon force-pushed the remove-deprecated-code-di branch 3 times, most recently from 3943661 to 5a71da0 Compare May 18, 2017 20:26
@hhamon hhamon changed the title [WIP] [DependencyInjection] remove deprecated code in YamlFileLoader class [DependencyInjection] remove deprecated code in YamlFileLoader class May 18, 2017
@hhamon
Copy link
Contributor Author

hhamon commented May 18, 2017

@nicolas-grekas no more WIP :)

@hhamon hhamon force-pushed the remove-deprecated-code-di branch 4 times, most recently from f020901 to 854efce Compare May 19, 2017 08:55
@fabpot
Copy link
Member

fabpot commented May 21, 2017

Thank you @hhamon.

@fabpot fabpot merged commit 854efce into symfony:master May 21, 2017
fabpot added a commit that referenced this pull request May 21, 2017
…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
@fabpot fabpot mentioned this pull request Oct 19, 2017
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.

7 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.