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
Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ CHANGELOG
9
9
* Have `ServiceLocator` implement `ServiceCollectionInterface`
10
10
* Add `#[Lazy]` attribute as shortcut for `#[Autowire(lazy: [bool|string])]` and `#[Autoconfigure(lazy: [bool|string])]`
11
11
* Add `#[AutowireMethodOf]` attribute to autowire a method of a service as a callable
12
+
*`ContainerBuilder::registerAttributeForAutoconfiguration()` is applied to child classes for the autoconfigured attribute, except there is another autoconfiguration for this child attribute class.
Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Tests/Compiler/AttributeAutoconfigurationPassTest.php
+35Lines changed: 35 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -45,4 +45,39 @@ public function testAttributeConfiguratorCallableMissingType()
45
45
$this->expectExceptionMessage('Argument "$reflector" of attribute autoconfigurator should have a type, use one or more of "\ReflectionClass|\ReflectionMethod|\ReflectionProperty|\ReflectionParameter|\Reflector" in ');
$container->registerAttributeForAutoconfiguration(AsTaggedItem::class, function (ChildDefinition$definition, AsTaggedItem$attribute, \ReflectionClass$reflector) use (&$calls) {
0 commit comments