src/Controller.php
protected function resolveArguments(
        ContainerInterface $container,
        \ReflectionMethod $method,
        array $parameters
    ) {
        try {
            //Getting set of arguments should be sent to requested method
            return $container->get(ResolverInterface::class)->resolveArguments(
                $method,
                $parameters
            );
        } catch (ArgumentException $e) {
            throw new ControllerException(
                "Missing/invalid parameter '{$e->getParameter()->name}'",
                ControllerException::BAD_ARGUMENT
            );
        } catch (ContainerExceptionInterface $e) {
            throw new ControllerException($e->getMessage(), ControllerException::ERROR, $e);
        }
    }
protected function resolveArguments(
        ContainerInterface $container,
        \ReflectionMethod $method,
        array $parameters
    ) {
        try {
            //Getting set of arguments should be sent to requested method
            return $container->get(ResolverInterface::class)->resolveArguments(
                $method,
                $parameters
            );
        } catch (ArgumentException $e) {
            throw new ControllerException(
                "Missing/invalid parameter '{$e->getParameter()->name}'",
                ControllerException::BAD_ARGUMENT
            );
        } catch (ContainerExceptionInterface $e) {
            throw new ControllerException($e->getMessage(), ControllerException::ERROR, $e);
        }
    }
protected function resolveArguments ( ContainerInterface $ container , \ ReflectionMethod $ method , array $ parameters ) { try { //Getting set of arguments should be sent to requested method return $ container -> get ( ResolverInterface :: class ) -> resolveArguments ( $ method , $ parameters ) ; } catch ( ArgumentException $ e ) { throw new ControllerException ( "Missing/invalid parameter '{$e->getParameter()->name}'" , ControllerException :: BAD_ARGUMENT ) ; } catch ( ContainerExceptionInterface $ e ) { throw new ControllerException ( $ e -> getMessage ( ) , ControllerException :: ERROR , $ e ) ; } }
Resolve controller method arguments.

@param ContainerInterface $container
@param \ReflectionMethod  $method
@param array              $parameters

@return array
Resolve controller method arguments .