public function __construct($fullControllerName, $customControllerName, array $requestParams = [])
 {
     $this->fullControllerName = $fullControllerName;
     $this->customControllerName = $customControllerName;
     $this->requestParams = $requestParams;
     $this->databaseInstance = Database::getInstance(DatabaseConfig::DB_INSTANCE_NAME);
 }
示例#2
0
 public function start()
 {
     $this->initAutoload();
     Database::setInstance(DatabaseConfig::DB_INSTANCE_NAME, DatabaseConfig::DB_DRIVER, DatabaseConfig::DB_USERNAME, DatabaseConfig::DB_PASSWORD, DatabaseConfig::DB_NAME, DatabaseConfig::DB_HOST);
     $_router = new Router(FrameworkRoutingConfig::getCustomMappings());
     $_frontController = FrontController::getInstance($_router);
     $_frontController->dispatch();
 }
 public function __construct($areaName = null, $controllerName, $actionName, array $requestParams = [])
 {
     $this->_areaName = $areaName;
     $this->_controllerName = $controllerName;
     $this->_actionName = $actionName;
     $this->_requestParams = $requestParams;
     $this->databaseInstance = Database::getInstance(DatabaseConfig::DB_INSTANCE_NAME);
 }