N98\Magento\Command\Developer\Module\Disableenable\AbstractCommand::enableCodePool PHP Method

enableCodePool() protected method

Search a code pool for modules and enable them
protected enableCodePool ( string $codePool, Symfony\Component\Console\Output\OutputInterface $output ) : integer | void
$codePool string
$output Symfony\Component\Console\Output\OutputInterface
return integer | void
    protected function enableCodePool($codePool, OutputInterface $output)
    {
        $modules = $this->config->getNode('modules')->asArray();
        foreach ($modules as $module => $data) {
            if (isset($data['codePool']) && $data['codePool'] == $codePool) {
                $this->enableModule($module, $output);
            }
        }
    }