callableResolver->getCallableFromDefinition($controller); } catch (\InvalidArgumentException $e) { throw new \InvalidArgumentException(sprintf('The controller for URI "%s" is not callable.', $path), 0, $e); } return $callable; } /** * {@inheritdoc} */ public function getController(Request $request): callable|FALSE { if (!$controller = $request->attributes->get('_controller')) { return FALSE; } return $this->getControllerFromDefinition($controller, $request->getPathInfo()); } }