Skip to content

Commit 2074495

Browse files
committed
Move stuff to ock/reflector-aware-attributes.
1 parent 7a3423f commit 2074495

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"ock/class-discovery": "self.version",
99
"ock/di-discovery": "self.version",
1010
"ock/helpers": "self.version",
11+
"ock/reflector-aware-attributes": "self.version",
1112
"psr/log": "^1.1.4|^2.0|^3.0"
1213
},
1314
"require-dev": {

src/Attribute/Parameter/OckAdaptee.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace Ock\Ock\Attribute\Parameter;
66

7-
use Ock\ClassDiscovery\Attribute\ReflectorAwareAttributeInterface;
87
use Ock\ClassDiscovery\Exception\MalformedDeclarationException;
98
use Ock\Ock\Attribute\PluginModifier\PluginModifierAttributeInterface;
109
use Ock\Ock\Contract\FormulaHavingInterface;
@@ -15,6 +14,7 @@
1514
use Ock\Ock\Plugin\PluginDeclaration;
1615
use Ock\Ock\Text\Text;
1716
use Ock\Ock\Text\TextInterface;
17+
use Ock\ReflectorAwareAttributes\ReflectorAwareAttributeInterface;
1818

1919
#[\Attribute(\Attribute::TARGET_PARAMETER|\Attribute::TARGET_PROPERTY)]
2020
class OckAdaptee implements NameHavingInterface, LabelHavingInterface, FormulaHavingInterface, ReflectorAwareAttributeInterface, PluginModifierAttributeInterface {

src/Inspector/FactoryInspector_OckInstanceAttribute.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace Ock\Ock\Inspector;
66

7-
use Ock\ClassDiscovery\Attribute\ReflectorAwareAttributeInterface;
87
use Ock\ClassDiscovery\Exception\MalformedDeclarationException;
98
use Ock\ClassDiscovery\Inspector\FactoryInspectorInterface;
109
use Ock\ClassDiscovery\Util\AttributesUtil;
@@ -28,6 +27,7 @@
2827
use Ock\Reflection\FactoryReflectionInterface;
2928
use Ock\Reflection\MethodReflection;
3029
use Ock\Reflection\ParameterReflection;
30+
use Ock\ReflectorAwareAttributes\ReflectorAwareAttributeInterface;
3131
use Psr\Container\ContainerInterface;
3232

3333
/**
@@ -136,7 +136,7 @@ private function buildGroupFormula(array $parameters): GroupFormulaBuilder {
136136
$e->getMessage(),
137137
), 0, $e);
138138
}
139-
/** @var \Ock\ClassDiscovery\Attribute\ReflectorAwareAttributeInterface $attribute */
139+
/** @var \Ock\ReflectorAwareAttributes\ReflectorAwareAttributeInterface $attribute */
140140
foreach (AttributesUtil::getAll($parameter, ReflectorAwareAttributeInterface::class) as $attribute) {
141141
$attribute->setReflector($parameter);
142142
}

0 commit comments

Comments
 (0)