-
Notifications
You must be signed in to change notification settings - Fork 130
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
How pass arguments without the need of override the constructor #244
Comments
Well this makes new annotations to support for a very small benefit... |
Hi, for both cases you could create a custom annotation -> similar to https://github.com/wodka/SonataAdminBundle/blob/jms-annotation/Annotation/Admin.php it would also be possible to extend your trait and define the annotation there. |
@Ener-Getick is a small benefit depending on use cases, for some pepole like me is a good feature. @wodka, didn't know this annotation, I use sonata and each administration is dificult to implement with JMSDiExtraBundle. Thanks, in the other hand, I think that the above annotations can be like a good feature for future versions. Its not really a good practice the need of implements a custom annotation for some cases. |
I thinks that if the target of JMSDiExtraBundle is to use Dependency Injection in annotations. Knowing this |
could be a nice addition to: #240 |
It's possible pass some arguments to a constructor without the need of override the constructor method?
When create a service based on another class in some cases is needed pass some arguments to the constructor.
Now:
Something like this would be very useful
Suggestion:
In the other hand, something similar to call a setter without the need of override the parent class method would be very helpful to.
NOW:
Suggestion:
The text was updated successfully, but these errors were encountered: