/**
  * Once the provided has booted, we can now look at configuration and see if there's
  * any paths defined to automatically load and register the required themes.
  */
 protected function bootThemes()
 {
     $paths = $this->app['config']->get('stylist.paths', []);
     foreach ($paths as $path) {
         $themePaths = Stylist::discover($path);
         Stylist::registerPaths($themePaths);
     }
     $theme = $this->app['config']->get('stylist.activate', null);
     if (!is_null($theme)) {
         Stylist::activate($theme);
     }
 }
Exemple #2
0
 /**
  * @expectedException FloatingPoint\Stylist\Theme\Exceptions\ThemeNotFoundException
  */
 public function testInvalidTheme()
 {
     $stylist = new Stylist(new Loader(), $this->app);
     $stylist->get('invalidtheme');
 }