Skip to content

[DependencyInjection] simplify the BC layer #17565

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
Jan 27, 2016

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Jan 27, 2016

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

The change to the setFactoryService() method is consistent with what
we did with the getFactoryService() before (and how we handle the
deprecation of strict references in Symfony 2.8).

The change to the `setFactoryService()` method is consistent with what
we did with the `getFactoryService()` before (and how we handle the
deprecation of strict references in Symfony 2.8).
@fabpot
Copy link
Member

fabpot commented Jan 27, 2016

Thank you @xabbuh.

@fabpot fabpot merged commit 6cd5ee3 into symfony:2.7 Jan 27, 2016
fabpot added a commit that referenced this pull request Jan 27, 2016
This PR was merged into the 2.7 branch.

Discussion
----------

[DependencyInjection] simplify the BC layer

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

The change to the `setFactoryService()` method is consistent with what
we did with the `getFactoryService()` before (and how we handle the
deprecation of strict references in Symfony 2.8).

Commits
-------

6cd5ee3 [DependencyInjection] simplify the BC layer
@xabbuh xabbuh deleted the simplify-bc-layer branch January 27, 2016 16:23
@@ -99,7 +99,7 @@ public function setFactoryMethod($method)
/**
* {@inheritdoc}
*/
public function setFactoryService($service)
public function setFactoryService($service, $triggerDeprecationError = true)
{
$this->changes['factory_service'] = true;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't you forget to spread the new argument to the parent ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh good catch, we never call this internally so this went unnoticed. Would you like to send a fix?

fabpot added a commit that referenced this pull request Jan 30, 2016
…parent class (xabbuh)

This PR was merged into the 2.7 branch.

Discussion
----------

[DependencyInjection] pass triggerDeprecationError arg to parent class

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #17565 (comment)
| License       | MIT
| Doc PR        |

Commits
-------

350625d pass triggerDeprecationError arg to parent class
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.

4 participants