private function __construct() { $this->initAutoload(); $this->_appStructureConfig = AppStructureConfig::getInstance(); $this->_appStructureConfig->setupConfig(); $this->_router = new Router($this->_appStructureConfig->getAppStructure(), $this->_appStructureConfig->getActionsArray(), RoutingConfig::getCustomMappings()); $this->_frontController = FrontController::getInstance($this->_router); }
/** * This method returns custom defined routes that map to existing ones. * 'uri' key keeps the existing route * 'params' keeps the needed uri params to call the action. * See below for example. * @return array */ public static function getCustomMappings() { return RoutingConfig::getCustomMappings(); }