You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature #54365 [DependencyInjection] Apply attribute configurator to child classes (GromNaN)
This PR was squashed before being merged into the 7.1 branch.
Discussion
----------
[DependencyInjection] Apply attribute configurator to child classes
| Q | A
| ------------- | ---
| Branch? | 7.1
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Issues | Fix #52898
| License | MIT
This allows extending attribute classes registered for autoconfiguration.
Use-case: Share configuration between several classes with pre-configured attribute classes. As described in #52898 (bus name for `AsMessageHandler`, schedule name for `AsCronTask` and `AsPeriodicTask`)
The child-class attribute is handled by the same function as it's parent class that is registered for autoconfiguration. This means any additional property will be ignored (unless supported, which could be new feature for the `AsTaggedItem` attribute configurator).
If there is a configurator for the child class, the configurator for the parent class is not called.
Commits
-------
69dc71be6d [DependencyInjection] Apply attribute configurator to child classes
0 commit comments