eee
This commit is contained in:
+3
-2
@@ -10,6 +10,7 @@ declare(strict_types=1);
|
|||||||
namespace Kiri\Di;
|
namespace Kiri\Di;
|
||||||
|
|
||||||
|
|
||||||
|
use Closure;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Kiri\Di\Interface\InjectProxyInterface;
|
use Kiri\Di\Interface\InjectProxyInterface;
|
||||||
use Kiri\Router\Interface\ValidatorInterface;
|
use Kiri\Router\Interface\ValidatorInterface;
|
||||||
@@ -277,11 +278,11 @@ class Container implements ContainerInterface
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param \Closure $parameters
|
* @param Closure $parameters
|
||||||
* @return array
|
* @return array
|
||||||
* @throws ReflectionException
|
* @throws ReflectionException
|
||||||
*/
|
*/
|
||||||
public function getFunctionParams(\Closure $parameters): array
|
public function getFunctionParams(Closure $parameters): array
|
||||||
{
|
{
|
||||||
return $this->resolveMethodParams(new ReflectionFunction($parameters));
|
return $this->resolveMethodParams(new ReflectionFunction($parameters));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user