Revert "改名"
This reverts commit fdf58326
This commit is contained in:
@@ -12,10 +12,7 @@ namespace Kiri\Di;
|
|||||||
use Closure;
|
use Closure;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Kiri;
|
use Kiri;
|
||||||
use Kiri\Abstracts\Logger;
|
|
||||||
use Kiri\Annotation\Inject;
|
|
||||||
use Psr\Container\ContainerInterface;
|
use Psr\Container\ContainerInterface;
|
||||||
use Psr\Log\LoggerInterface;
|
|
||||||
use ReflectionClass;
|
use ReflectionClass;
|
||||||
use ReflectionException;
|
use ReflectionException;
|
||||||
use ReflectionFunction;
|
use ReflectionFunction;
|
||||||
@@ -57,7 +54,6 @@ class Container implements ContainerInterface
|
|||||||
|
|
||||||
/** @var array|string[] */
|
/** @var array|string[] */
|
||||||
private array $_interfaces = [
|
private array $_interfaces = [
|
||||||
LoggerInterface::class => Logger::class
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
@@ -202,7 +198,6 @@ class Container implements ContainerInterface
|
|||||||
public function propertyInject(ReflectionClass $reflect, $object): mixed
|
public function propertyInject(ReflectionClass $reflect, $object): mixed
|
||||||
{
|
{
|
||||||
foreach (NoteManager::getPropertyAnnotation($reflect) as $property => $inject) {
|
foreach (NoteManager::getPropertyAnnotation($reflect) as $property => $inject) {
|
||||||
/** @var Inject $inject */
|
|
||||||
$inject->execute($object, $property);
|
$inject->execute($object, $property);
|
||||||
}
|
}
|
||||||
return $object;
|
return $object;
|
||||||
|
|||||||
+1
-2
@@ -2,14 +2,13 @@
|
|||||||
|
|
||||||
namespace Kiri\Di;
|
namespace Kiri\Di;
|
||||||
|
|
||||||
use Kiri\Abstracts\Component;
|
|
||||||
use Kiri;
|
use Kiri;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 服务定位器
|
* 服务定位器
|
||||||
*/
|
*/
|
||||||
class LocalService extends Component
|
class LocalService
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user