/** * Register the theme bag which holds all the themes. * * @return void */ protected function registerThemeBag() { $this->app['themes'] = $this->app->share(function ($app) { $config = $app['config']->get('cartalyst.themes'); $themeBag = new ThemeBag($app['files'], array_get($config, 'paths')); $themeBag->setPackagesPath(array_get($config, 'packages_path')); $themeBag->setNamespacesPath(array_get($config, 'namespaces_path')); $themeBag->setViewsPath(array_get($config, 'views_path')); $themeBag->setAssetsPath(array_get($config, 'assets_path')); return $themeBag; }); }