-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
feat: provide current factory to after/before hooks #738
base: 2.x
Are you sure you want to change the base?
Conversation
// $attributes is what will be used to instantiate the object, manipulate as required | ||
// $class is the class of the object being instantiated |
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.
I'm not sure why we're passing the $class here 🤔
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.
Me either... I think it was in case someone had some kind of beforeInstantiate object/service that could act on many different objects?
/** | ||
* @author Nicolas Philippe <[email protected]> | ||
*/ | ||
final class FactoryWithHooksInInitializeTest extends KernelTestCase |
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.
I did not find any other class to put this test (we need a KernelTestCase
, so that ->isPersisting()
can return true)
86e6c74
to
6f92f5d
Compare
6f92f5d
to
8a6b5a7
Compare
fixes #677