From 2dac0fa9afbc4974125b85052e7923a7196c79ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 16 Jun 2022 18:54:15 +0800 Subject: [PATCH] modify plugin name --- Container.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Container.php b/Container.php index f2db01c..61910b3 100644 --- a/Container.php +++ b/Container.php @@ -314,11 +314,7 @@ class Container implements ContainerInterface if (!($reflectMethod instanceof ReflectionMethod)) { throw new ReflectionException("Class does not have a function $className::$method"); } - $className = $reflectMethod->getDeclaringClass()->getName(); - if (!isset($this->_parameters[$className]) || !isset($this->_parameters[$className][$method])) { - return $this->setParameters($className, $method, $this->resolveParameters($reflectMethod)); - } - return $this->_parameters[$className][$method]; + return $this->setParameters($className, $method, $this->resolveParameters($reflectMethod)); }