111
This commit is contained in:
@@ -52,26 +52,6 @@ class Kiri
|
||||
private static ?Application $service = null;
|
||||
|
||||
|
||||
/**
|
||||
* @param object $class
|
||||
* @throws ReflectionException
|
||||
*/
|
||||
public static function injectProperty(object $class)
|
||||
{
|
||||
$attributes = static::getDi()->getClassReflectionProperty($class::class);
|
||||
/**
|
||||
* @var string $property
|
||||
* @var ReflectionProperty $attribute
|
||||
*/
|
||||
foreach ($attributes as $property => $attribute) {
|
||||
|
||||
foreach ($attribute->getAttributes() as $item) {
|
||||
$item->newInstance()->execute($class, $property);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param $service
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user