Revert "改名"

This reverts commit fdf58326
This commit is contained in:
2022-02-03 14:54:38 +08:00
parent 69c1ea60dc
commit ef274b00fc
2 changed files with 1 additions and 7 deletions
-5
View File
@@ -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
View File
@@ -2,14 +2,13 @@
namespace Kiri\Di; namespace Kiri\Di;
use Kiri\Abstracts\Component;
use Kiri; use Kiri;
/** /**
* 服务定位器 * 服务定位器
*/ */
class LocalService extends Component class LocalService
{ {