Skip to content

[2.7] silence deprecations for getFactory*() BC layer #13292

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 7, 2015

Conversation

nicolas-grekas
Copy link
Member

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

From 150k to 5k notices

@fabpot
Copy link
Member

fabpot commented Jan 7, 2015

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 998dedf into symfony:2.7 Jan 7, 2015
fabpot added a commit that referenced this pull request Jan 7, 2015
…icolas-grekas)

This PR was merged into the 2.7 branch.

Discussion
----------

[2.7] silence deprecations for getFactory*() BC layer

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

From 150k to 5k notices

Commits
-------

998dedf [2.7] silence deprecations for getFactory*() BC layer
if ($definition->getFactoryClass()) {
$serviceXML->setAttribute('factory-class', $definition->getFactoryClass());
}
if (method_exists($definition, 'getFactoryMethod')) {
Copy link
Member

Choose a reason for hiding this comment

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

why a methodExists check ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Forward compatibility layer with 3.0, when we'll remove getFactoryMethod there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants