N98\Magento\Command\System\InfoCommand::findVendors PHP Метод

findVendors() защищенный Метод

protected findVendors ( ) : integer | void
Результат integer | void
    protected function findVendors()
    {
        $codePools = array('core' => $this->_magentoRootFolder . '/app/code/core/', 'community' => $this->_magentoRootFolder . '/app/code/community/');
        if (is_dir($this->_magentoRootFolder . '/app/code/local/')) {
            $codePools['local'] = $this->_magentoRootFolder . '/app/code/local/';
        }
        foreach ($codePools as $codePool => $codePoolDir) {
            $finder = Finder::create();
            $finder->directories()->ignoreUnreadableDirs(true)->in($codePoolDir)->depth(0)->sortByName();
            $vendors = iterator_to_array($finder);
            $vendors = array_map(function ($value) use($codePoolDir) {
                return str_replace($codePoolDir, '', $value);
            }, $vendors);
            $this->infos['Vendors (' . $codePool . ')'] = implode(', ', $vendors);
        }
    }