N98\Magento\Command\Developer\Module\UpdateCommand::determineModuleCodePool PHP Méthode

determineModuleCodePool() protected méthode

Find module codepool from module directory
protected determineModuleCodePool ( ) : string
Résultat string
    protected function determineModuleCodePool()
    {
        if ($this->testMode === true) {
            $this->codePool = 'local';
            $this->_magentoRootFolder = './' . $this->getModuleNamespace() . '/src';
            $this->moduleDirectory = $this->_magentoRootFolder . '/app/code/' . $this->codePool . '/' . $this->vendorNamespace . '/' . $this->moduleName;
        } else {
            $this->moduleDirectory = $this->getModuleDir();
        }
        if (preg_match('/community/', $this->moduleDirectory)) {
            $this->codePool = 'community';
        }
        if (preg_match('/local/', $this->moduleDirectory)) {
            $this->codePool = 'local';
        }
        return $this->codePool;
    }