N98\Magento\Application\Config::getDetectSubFolders PHP Method

getDetectSubFolders() public method

Get names of sub-folders to be scanned during Magento detection
public getDetectSubFolders ( ) : array
return array
    public function getDetectSubFolders()
    {
        if (isset($this->partialConfig['detect']['subFolders'])) {
            return $this->partialConfig['detect']['subFolders'];
        }
        return array();
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Search for magento root folder
  *
  * @param InputInterface|null $input [optional]
  * @param OutputInterface|null $output [optional]
  * @return void
  */
 public function detectMagento(InputInterface $input = null, OutputInterface $output = null)
 {
     // do not detect magento twice
     if ($this->_magentoDetected) {
         return;
     }
     if ($this->getMagentoRootFolder() === null) {
         $this->_checkRootDirOption();
         $folder = OperatingSystem::getCwd();
     } else {
         $folder = $this->getMagentoRootFolder();
     }
     $this->getHelperSet()->set(new MagentoHelper($input, $output), 'magento');
     $magentoHelper = $this->getHelperSet()->get('magento');
     /* @var $magentoHelper MagentoHelper */
     if (!$this->_directRootDir) {
         $subFolders = $this->config->getDetectSubFolders();
     } else {
         $subFolders = array();
     }
     $this->_magentoDetected = $magentoHelper->detect($folder, $subFolders);
     $this->_magentoRootFolder = $magentoHelper->getRootFolder();
     $this->_magentoEnterprise = $magentoHelper->isEnterpriseEdition();
     $this->_magentoMajorVersion = $magentoHelper->getMajorVersion();
     $this->_magerunStopFileFound = $magentoHelper->isMagerunStopFileFound();
     $this->_magerunStopFileFolder = $magentoHelper->getMagerunStopFileFolder();
 }
All Usage Examples Of N98\Magento\Application\Config::getDetectSubFolders