public function start() { $this->initAutoload(); Database::setInstance(Config::DB_INSTANCE_NAME, Config::DB_DRIVER, Config::DB_USERNAME, Config::DB_PASSWORD, Config::DB_NAME, Config::DB_HOST); $this->_frontController = FrontController::getInstance(); $this->_frontController->dispatch(); }
public function __construct($controllerName, array $requestParams = []) { $this->controllerName = $controllerName; $this->requestParams = $requestParams; $this->databaseInstance = Database::getInstance(Config::DB_INSTANCE_NAME); }