src/repositories/PluginDirRepository.php
protected function populate()
    {
        ClassHelper::getAllClasses($this->_dirs, function ($class) {
            foreach ($this->_methods as $type) {
                /** @var BasePlugin|BaseShortcode $class */
                if (is_callable([$class, $type])) {
                    $this->_data[] = $this->getInfo($class, $type);
                    return $class;
                }
            }
            return null;
        });
    }
protected function populate()
    {
        ClassHelper::getAllClasses($this->_dirs, function ($class) {
            foreach ($this->_methods as $type) {
                /** @var BasePlugin|BaseShortcode $class */
                if (is_callable([$class, $type])) {
                    $this->_data[] = $this->getInfo($class, $type);
                    return $class;
                }
            }
            return null;
        });
    }
protected function populate ( ) { ClassHelper :: getAllClasses ( $ this -> _dirs , function ( $ class ) { foreach ( $ this -> _methods as $ type ) { /** @var BasePlugin|BaseShortcode $class */ if ( is_callable ( [ $ class , $ type ] ) ) { $ this -> _data [ ] = $ this -> getInfo ( $ class , $ type ) ; return $ class ; } } return null ; } ) ; }
populate pool storage
populate pool storage