public static function setUpBeforeClass() { $bootstrapSteps = array('configuration', 'database', 'cache', 'routes', 'organization'); $bootstrap = new Bootstrap(); $bootstrap->init($bootstrapSteps); self::dropTables(); self::installTables(); $bootstrap->init(static::$bootstrapExtraSteps); }
/** * * @param string $requestLine * @param array $arguments */ public function __construct($requestLine, $arguments) { try { $bootstrap = new Bootstrap(); $sectionToInit = array('configuration', 'database', 'constants', 'cache', 'logger', 'organization', 'events'); $bootstrap->init($sectionToInit); $this->requestLine = $requestLine; $this->arguments = $arguments; $modulesToParse = array(); $coreCheck = preg_match("/^core:/", $requestLine); if ($coreCheck === 0 || $coreCheck === false) { foreach (glob(__DIR__ . "/../../modules/*Module") as $moduleTemplateDir) { $modulesToParse[] = basename($moduleTemplateDir); } } $this->parseCommand($modulesToParse); } catch (\Exception $e) { echo $e; } }
public static function setUpBeforeClass() { $bootstrapSteps = array('configuration', 'database', 'template', 'cache', 'routes', 'organization'); $bootstrap = new Bootstrap(); $bootstrap->init($bootstrapSteps); }