Skip to content

Reuse PriorityTaggedServiceTrait from symfony#1412

Closed
norkunas wants to merge 1 commit intoapi-platform:2.0from
norkunas:simplify-compilerpass
Closed

Reuse PriorityTaggedServiceTrait from symfony#1412
norkunas wants to merge 1 commit intoapi-platform:2.0from
norkunas:simplify-compilerpass

Conversation

@norkunas
Copy link
Contributor

@norkunas norkunas commented Oct 11, 2017

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

Only difference will be now that it will throw if service will be abstract, but I think this should have done already before.

@norkunas norkunas force-pushed the simplify-compilerpass branch 2 times, most recently from 9ce1477 to 1a0bc4d Compare October 11, 2017 08:13
@norkunas norkunas force-pushed the simplify-compilerpass branch from 1a0bc4d to 041fb19 Compare October 11, 2017 08:19
@norkunas
Copy link
Contributor Author

norkunas commented Oct 11, 2017

Oh.. dependency injection component is a soft dependency :/

@norkunas norkunas closed this Oct 11, 2017
@norkunas norkunas deleted the simplify-compilerpass branch October 11, 2017 08:57
@meyerbaptiste
Copy link
Member

But we can update our method with the one provided by the Symfony trait...

@norkunas
Copy link
Contributor Author

If you want I can submit PR for that

@meyerbaptiste
Copy link
Member

meyerbaptiste commented Oct 11, 2017

Definitely @norkunas!

@sroze
Copy link
Contributor

sroze commented Oct 11, 2017

When using this compiler pass we know what the DependencyInjection component is here tho... so we could use this trait.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants