protected function getPluginClasses($refresh = false)
    {
        if ($refresh || !$this->pluginClasses) {
            $this->pluginClasses = [];
            $files = $this->globByDirs($this->dirs, '/Plugin.php');
            foreach ($files as $file) {
                $class = $this->guessClassName($file);

                $name = explode('\\', $class)[1];
                $name = $this->dash($name);

                $this->pluginClasses[$name] = $class;
            }
            ksort($this->pluginClasses);
        }

        return $this->pluginClasses;
    }
protected function getPluginClasses($refresh = false)
    {
        if ($refresh || !$this->pluginClasses) {
            $this->pluginClasses = [];
            $files = $this->globByDirs($this->dirs, '/Plugin.php');
            foreach ($files as $file) {
                $class = $this->guessClassName($file);

                $name = explode('\\', $class)[1];
                $name = $this->dash($name);

                $this->pluginClasses[$name] = $class;
            }
            ksort($this->pluginClasses);
        }

        return $this->pluginClasses;
    }
protected function getPluginClasses ( $ refresh = false ) { if ( $ refresh || ! $ this -> pluginClasses ) { $ this -> pluginClasses = [ ] ; $ files = $ this -> globByDirs ( $ this -> dirs , '/Plugin.php' ) ; foreach ( $ files as $ file ) { $ class = $ this -> guessClassName ( $ file ) ; $ name = explode ( '\\' , $ class ) [ 1 ] ; $ name = $ this -> dash ( $ name ) ; $ this -> pluginClasses [ $ name ] = $ class ; } ksort ( $ this -> pluginClasses ) ; } return $ this -> pluginClasses ; }
Get all plugin classes

@param bool $refresh
@return array
@throws Exception
Get all plugin classes