protected function loadPlugins()
    {
        $pluginsDirs = array(
            __DIR__.'/../../data/plugins/Ladybug/Plugin',
            __DIR__.'/../../../ladybug-plugins/Ladybug/Plugin',
            __DIR__.'/../../../ladybug-themes/Ladybug/Plugin'
        );

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

                foreach ($finder as $file) {
                    /** @var SplFileInfo $file */
                    $this->registerPlugin($file);
                }
            }
        }
    }
protected function loadPlugins()
    {
        $pluginsDirs = array(
            __DIR__.'/../../data/plugins/Ladybug/Plugin',
            __DIR__.'/../../../ladybug-plugins/Ladybug/Plugin',
            __DIR__.'/../../../ladybug-themes/Ladybug/Plugin'
        );

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

                foreach ($finder as $file) {
                    /** @var SplFileInfo $file */
                    $this->registerPlugin($file);
                }
            }
        }
    }
protected function loadPlugins ( ) { $ pluginsDirs = array ( __DIR__ . '/../../data/plugins/Ladybug/Plugin' , __DIR__ . '/../../../ladybug-plugins/Ladybug/Plugin' , __DIR__ . '/../../../ladybug-themes/Ladybug/Plugin' ) ; foreach ( $ pluginsDirs as $ dir ) { if ( is_dir ( $ dir ) ) { $ finder = new Finder ( ) ; $ finder -> in ( $ dir ) -> files ( ) -> depth ( 1 ) -> name ( '*Plugin.php' ) ; foreach ( $ finder as $ file ) { /** @var SplFileInfo $file */ $ this -> registerPlugin ( $ file ) ; } } } }
Loads third-party plugins.
@throws \Exception
Loads third - party plugins .