Jarves\Controller\Admin\BundleManager\ManagerController::getLocalAction PHP Method

getLocalAction() public method

public getLocalAction ( ) : array
return array
    public function getLocalAction()
    {
        $finder = new Finder();
        $root = $this->jarves->getRootDir();
        $finder->files()->ignoreUnreadableDirs()->name('*Bundle.php')->exclude('Jarves/vendor')->exclude('/\\/Test\\//')->exclude('/\\/Tests\\//');
        if (file_exists($root . '/../vendor')) {
            $finder->in($root . '/../vendor');
        }
        if (file_exists($root . '/../src')) {
            $finder->in($root . '/../src');
        }
        return $this->getBundles($finder);
    }