* ---------------------------------------------------------------------------- * Setup file cache directories. Has to come after we define services * because we use the file service. * ---------------------------------------------------------------------------- */ $cms->setupFilesystem(); /** * ---------------------------------------------------------------------------- * Registries for theme paths, assets, routes and file types. * ---------------------------------------------------------------------------- */ $asset_list = AssetList::getInstance(); $asset_list->registerMultiple($config->get('app.assets', array())); $asset_list->registerGroupMultiple($config->get('app.asset_groups', array())); Route::registerMultiple($config->get('app.routes')); Route::setThemesByRoutes($config->get('app.theme_paths', array())); $type_list = TypeList::getInstance(); $type_list->defineMultiple($config->get('app.file_types', array())); $type_list->defineImporterAttributeMultiple($config->get('app.importer_attributes', array())); /** * ---------------------------------------------------------------------------- * If we are running through the command line, we don't proceed any further * ---------------------------------------------------------------------------- */ if ($cms->isRunThroughCommandLineInterface()) { return $cms; } /** * ---------------------------------------------------------------------------- * If not through CLI, load up the application/bootstrap/app.php */