-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DependencyInjection] use #[Required]
for ServiceSubscriberTrait::setContainer()
#45680
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
Conversation
maybe add both the annotation and the attribute? |
1ce4c2c
to
596e9d4
Compare
Done. |
Do you mean to target 6.0 or 6.1? 6.1 I guess, since that's not a bugfix, right? |
Or 5.4 if it's a bugfix? |
I meant to target 6.0 as a minor change. Not really a bug fix or feature but can target 6.1 if desired. If I target 5.4, I'll have to leave the |
We'd better merge this on 6.1 IMHO |
596e9d4
to
24646c4
Compare
Thank you @kbond. |
This change might have caused #48792. |
…ibute (alexislefebvre) This PR was merged into the 6.3 branch. Discussion ---------- [FrameworkBundle] remove double required annotation + attribute | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #48792 (checked with [this reproducer](#48792 (comment))) | License | MIT | Doc PR | no Annotation and attribute were kept: #45680 (comment) To my understanding, it's not necessary since #48810 Alternative to #48868 Commits ------- 8e8772d remove double required annotation + attribute
…ibute (alexislefebvre) This PR was merged into the 6.3 branch. Discussion ---------- [FrameworkBundle] remove double required annotation + attribute | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #48792 (checked with [this reproducer](symfony/symfony#48792 (comment))) | License | MIT | Doc PR | no Annotation and attribute were kept: symfony/symfony#45680 (comment) To my understanding, it's not necessary since #48810 Alternative to #48868 Commits ------- 8e8772d2c1 remove double required annotation + attribute
IMHO the framework bundle must require the service contracts in at least
|
@m-vo Please read the previous comments. I'm locking here to avoid more "me too" posts. |
Can't use for
Symfony\Bundle\FrameworkBundle\Controller::setContainer()
until we bump the min version ofservice-contracts
.