package and depencies
This commit is contained in:
@@ -19,8 +19,8 @@ use Symfony\Component\Stopwatch\Stopwatch;
|
||||
*/
|
||||
class TraceableArgumentResolver implements ArgumentResolverInterface
|
||||
{
|
||||
private $resolver;
|
||||
private $stopwatch;
|
||||
private ArgumentResolverInterface $resolver;
|
||||
private Stopwatch $stopwatch;
|
||||
|
||||
public function __construct(ArgumentResolverInterface $resolver, Stopwatch $stopwatch)
|
||||
{
|
||||
@@ -29,13 +29,14 @@ class TraceableArgumentResolver implements ArgumentResolverInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
* @param \ReflectionFunctionAbstract|null $reflector
|
||||
*/
|
||||
public function getArguments(Request $request, callable $controller)
|
||||
public function getArguments(Request $request, callable $controller/* , \ReflectionFunctionAbstract $reflector = null */): array
|
||||
{
|
||||
$reflector = 2 < \func_num_args() ? func_get_arg(2) : null;
|
||||
$e = $this->stopwatch->start('controller.get_arguments');
|
||||
|
||||
$ret = $this->resolver->getArguments($request, $controller);
|
||||
$ret = $this->resolver->getArguments($request, $controller, $reflector);
|
||||
|
||||
$e->stop();
|
||||
|
||||
|
Reference in New Issue
Block a user