core-bundle/src/HttpKernel/ControllerResolver.php
public function getArguments(Request $request, $controller): array
    {
        if (!method_exists($this->resolver, 'getArguments')) {
            return [];
        }

        return $this->resolver->getArguments($request, $controller);
    }
public function getArguments(Request $request, $controller): array
    {
        if (!method_exists($this->resolver, 'getArguments')) {
            return [];
        }

        return $this->resolver->getArguments($request, $controller);
    }
{@inheritdoc}