protected function loadThemes()
    {
        $themesDirs = array(
            __DIR__.'/../../data/themes/Ladybug/Theme',
            __DIR__.'/../../../ladybug-themes/Ladybug/Theme'
        );

        foreach ($themesDirs as $dir) {
            if (is_dir($dir)) {
                $finder = new Finder();
                $finder->in($dir)->files()->depth(1)->name('*Theme.php');

                foreach ($finder as $file) {
                    /** @var SplFileInfo $file */
                    $this->registerTheme($file);
                }
            }
        }
    }
protected function loadThemes()
    {
        $themesDirs = array(
            __DIR__.'/../../data/themes/Ladybug/Theme',
            __DIR__.'/../../../ladybug-themes/Ladybug/Theme'
        );

        foreach ($themesDirs as $dir) {
            if (is_dir($dir)) {
                $finder = new Finder();
                $finder->in($dir)->files()->depth(1)->name('*Theme.php');

                foreach ($finder as $file) {
                    /** @var SplFileInfo $file */
                    $this->registerTheme($file);
                }
            }
        }
    }
protected function loadThemes ( ) { $ themesDirs = array ( __DIR__ . '/../../data/themes/Ladybug/Theme' , __DIR__ . '/../../../ladybug-themes/Ladybug/Theme' ) ; foreach ( $ themesDirs as $ dir ) { if ( is_dir ( $ dir ) ) { $ finder = new Finder ( ) ; $ finder -> in ( $ dir ) -> files ( ) -> depth ( 1 ) -> name ( '*Theme.php' ) ; foreach ( $ finder as $ file ) { /** @var SplFileInfo $file */ $ this -> registerTheme ( $ file ) ; } } } }
Loads third-party themes.
Loads third - party themes .