add support for multiple service annotations#238
Open
wodka wants to merge 3 commits into
Open
Conversation
4ea63dc to
0f4d87a
Compare
Contributor
Author
|
perhaps something like: Ideas? |
| */ | ||
| public function addService(array $service) | ||
| { | ||
| if (empty($this->id)) { |
Collaborator
There was a problem hiding this comment.
IMO we should deprecate all this attributes
Contributor
Author
There was a problem hiding this comment.
I added the deprecated annotation to old properties
6d4a192 to
4533b8a
Compare
| /** | ||
| * get list of defined services, use fallback of original fields | ||
| * | ||
| * return array[] |
5275158 to
6379051
Compare
add deprecation warnings add services support to AfterSetup add tests fix schmittjoh#232
6379051 to
7655431
Compare
Contributor
Author
|
@Ener-Getick I just added the support for AfterSetup services |
| ); | ||
| } | ||
| foreach ($classMetadata->getServices() as $service) { | ||
| if (isset($environment) |
Collaborator
There was a problem hiding this comment.
Use null !== instead, it is clearer
Collaborator
|
I'm wondering if we should not create a new |
Collaborator
|
@schmittjoh What do you think about having a new metadata class ? something like |
Collaborator
|
as this is a big stuff, I think it will wait for 1.8. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.