Action/ControllerResolver.php
public function getController(Request $request)
    {
        if (!$request->attributes->get('_controller')) {
            $route = $request->attributes->get('_route');
            if (!$route || !$this->container->has($route)) {
                return false;
            }

            $request->attributes->set('_controller', $route);
        }

        return $this->baseControllerResolver->getController($request);
    }
public function getController(Request $request)
    {
        if (!$request->attributes->get('_controller')) {
            $route = $request->attributes->get('_route');
            if (!$route || !$this->container->has($route)) {
                return false;
            }

            $request->attributes->set('_controller', $route);
        }

        return $this->baseControllerResolver->getController($request);
    }
{@inheritdoc}