File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 55namespace Ock \Ock \Inspector ;
66
77use Ock \ClassDiscovery \Inspector \FactoryInspectorInterface ;
8- use Ock \ClassDiscovery \Util \AttributesUtil ;
98use Ock \DependencyInjection \Attribute \Service ;
109use Ock \DependencyInjection \Attribute \ServiceTag ;
1110use Ock \Ock \Attribute \PluginModifier \PluginModifierAttributeInterface ;
1211use Ock \Ock \OckPackage ;
1312use Ock \Reflection \FactoryReflectionInterface ;
13+ use function Ock \ReflectorAwareAttributes \get_attributes ;
1414
1515/**
1616 * @template TKey
@@ -39,7 +39,7 @@ public static function createDecoratorCallback(): \Closure {
3939 */
4040 public function findInFactory (FactoryReflectionInterface $ reflector ): \Iterator {
4141 foreach ($ this ->decorated ->findInFactory ($ reflector ) as $ key => $ declaration ) {
42- $ modifierAttributes ??= AttributesUtil:: getAll ($ reflector ->reveal (), PluginModifierAttributeInterface::class);
42+ $ modifierAttributes ??= get_attributes ($ reflector ->reveal (), PluginModifierAttributeInterface::class);
4343 foreach ($ modifierAttributes as $ modifier ) {
4444 $ declaration = $ modifier ->modifyPlugin ($ declaration );
4545 }
Original file line number Diff line number Diff line change 2929use Ock \Reflection \ParameterReflection ;
3030use Ock \ReflectorAwareAttributes \ReflectorAwareAttributeInterface ;
3131use Psr \Container \ContainerInterface ;
32+ use function Ock \ReflectorAwareAttributes \get_attributes ;
3233
3334/**
3435 * Inspector that looks for instance factories.
@@ -137,7 +138,7 @@ private function buildGroupFormula(array $parameters): GroupFormulaBuilder {
137138 ), 0 , $ e );
138139 }
139140 /** @var \Ock\ReflectorAwareAttributes\ReflectorAwareAttributeInterface $attribute */
140- foreach (AttributesUtil:: getAll ($ parameter , ReflectorAwareAttributeInterface::class) as $ attribute ) {
141+ foreach (get_attributes ($ parameter , ReflectorAwareAttributeInterface::class) as $ attribute ) {
141142 $ attribute ->setReflector ($ parameter );
142143 }
143144 }
You can’t perform that action at this time.
0 commit comments