Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DI][ProxyManager] Pass the factory code to execute to DumperInterface::getProxyFactoryCode() #23693

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
Jul 28, 2017

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Jul 27, 2017

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

Passing the full code to call the factory is more flexible, as spotted while working on #23678.

@nicolas-grekas nicolas-grekas added this to the 3.4 milestone Jul 27, 2017
@nicolas-grekas nicolas-grekas changed the title [DI][ProxyManager] Pass the full call to DumperInterface::getProxyFac… [DI][ProxyManager] Pass the full call to DumperInterface::getProxyFactoryCode() Jul 27, 2017
@@ -65,19 +65,20 @@ public function isProxyCandidate(Definition $definition)
/**
* {@inheritdoc}
*/
public function getProxyFactoryCode(Definition $definition, $id, $methodName = null)
public function getProxyFactoryCode(Definition $definition, $id, $methodCall = null)
Copy link
Member

Choose a reason for hiding this comment

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

I would name it instantiationExpression instead, as it may not even be a method call.

Copy link
Member Author

Choose a reason for hiding this comment

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

updated to $factoryCode

@nicolas-grekas nicolas-grekas changed the title [DI][ProxyManager] Pass the full call to DumperInterface::getProxyFactoryCode() [DI][ProxyManager] Pass the factory code to execute to DumperInterface::getProxyFactoryCode() Jul 27, 2017
@fabpot
Copy link
Member

fabpot commented Jul 28, 2017

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 0754617 into symfony:3.4 Jul 28, 2017
fabpot added a commit that referenced this pull request Jul 28, 2017
…umperInterface::getProxyFactoryCode() (nicolas-grekas)

This PR was merged into the 3.4 branch.

Discussion
----------

[DI][ProxyManager] Pass the factory code to execute to DumperInterface::getProxyFactoryCode()

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

Passing the full code to call the factory is more flexible, as spotted while working on #23678.

Commits
-------

0754617 [DI][ProxyManager] Pass the factory code to execute to DumperInterface::getProxyFactoryCode()
@nicolas-grekas nicolas-grekas deleted the proxy-call branch July 28, 2017 08:29
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