Framework/Router/Router.php
/**
	 * Return route action as array or callable
	 * 
	 * @param  mixed $action
	 * @return mixed
	 */
Return route action as array or callable

@param  mixed $action
@return mixed
Return route action as array or callable @param mixed $action @return mixed
private function makeRouteAction($action)
	{
		if (is_callable($action)) {
			return $action;
		}elseif (is_string($action)) {
			return $this->getControllerForRoute($action);
		}
		throw new \Exception("Bad Action '$action' for route");
	}
private function makeRouteAction ( $ action ) { if ( is_callable ( $ action ) ) { return $ action ; } elseif ( is_string ( $ action ) ) { return $ this -> getControllerForRoute ( $ action ) ; } throw new \ Exception ( " Bad Action ' $ action ' for route " ) ; }
Return route action as array or callable
Return route action as array or callable