-
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
add support for multiple service annotations #238
base: master
Are you sure you want to change the base?
Conversation
4ea63dc
to
0f4d87a
Compare
perhaps something like:
Ideas? |
*/ | ||
public function addService(array $service) | ||
{ | ||
if (empty($this->id)) { |
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.
IMO we should deprecate all this attributes
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 added the deprecated annotation to old properties
6d4a192
to
4533b8a
Compare
/** | ||
* get list of defined services, use fallback of original fields | ||
* | ||
* return array[] |
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.
@return
5275158
to
6379051
Compare
add deprecation warnings add services support to AfterSetup add tests fix schmittjoh#232
6379051
to
7655431
Compare
@Ener-Getick I just added the support for AfterSetup services |
); | ||
} | ||
foreach ($classMetadata->getServices() as $service) { | ||
if (isset($environment) |
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.
always true
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.
Use null !==
instead, it is clearer
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.
changed it
I'm wondering if we should not create a new |
@schmittjoh What do you think about having a new metadata class ? something like |
as this is a big stuff, I think it will wait for 1.8. |
this only adds the ability to define multipe service annotations on a class
to fully implement #232 we need to define how to add injections based on different service notations.