/** * Call the parent constructor, merge the commands list and launch the console */ public function __construct() { parent::__construct(); parent::$COMMANDS = array_merge(parent::$COMMANDS, static::$SELF_COMMANDS); $this->deploymentConfiguration = Ini::getSectionParams('Deployment'); $this->absoluteProjectRootPath = dirname(__FILE__, 5); $this->timeOffset = static::getTimezoneOffset('Greenwich'); static::$PROJECT_MAIN_STRUCTURE[$this->deploymentConfiguration['remoteProjectRootDirectoryName']] = static::$PROJECT_MAIN_STRUCTURE['.']; unset(static::$PROJECT_MAIN_STRUCTURE['.']); static::out(PHP_EOL . 'Absolute project root path is "' . $this->absoluteProjectRootPath . '"' . PHP_EOL); $this->launchConsole(); }
/** * Call the parent constructor, merge the commands list and launch the console */ public function __construct() { parent::__construct(); parent::$COMMANDS = array_merge(parent::$COMMANDS, static::$SELF_COMMANDS); $this->launchConsole(); }