src/mako/http/routing/Dispatcher.php
protected function executeAction(Route $route): Response
	{
		$action = $route->getAction();

		$parameters = $route->getParameters();

		if($action instanceof Closure)
		{
			return $this->executeClosure($action, $parameters);
		}

		return $this->executeController($action, $parameters);
	}
protected function executeAction(Route $route): Response
	{
		$action = $route->getAction();

		$parameters = $route->getParameters();

		if($action instanceof Closure)
		{
			return $this->executeClosure($action, $parameters);
		}

		return $this->executeController($action, $parameters);
	}
protected function executeAction ( Route $ route ) : Response { $ action = $ route -> getAction ( ) ; $ parameters = $ route -> getParameters ( ) ; if ( $ action instanceof Closure ) { return $ this -> executeClosure ( $ action , $ parameters ) ; } return $ this -> executeController ( $ action , $ parameters ) ; }
Executes the route action.

@param  \mako\http\routing\Route $route Route
@return \mako\http\Response
Executes the route action .