EventListener/ModuleEventListener.php
public function loadCustomerGroupConfigFile(ModuleToggleActivationEvent $event)
    {
        $event->setModule(ModuleQuery::create()->findPk($event->getModuleId()));

        if ($event->getModule()->getActivate() === BaseModule::IS_NOT_ACTIVATED) {
            $this->configurationFileHandler->loadConfigurationFile($event->getModule());
        }
    }
public function loadCustomerGroupConfigFile(ModuleToggleActivationEvent $event)
    {
        $event->setModule(ModuleQuery::create()->findPk($event->getModuleId()));

        if ($event->getModule()->getActivate() === BaseModule::IS_NOT_ACTIVATED) {
            $this->configurationFileHandler->loadConfigurationFile($event->getModule());
        }
    }
public function loadCustomerGroupConfigFile ( ModuleToggleActivationEvent $ event ) { $ event -> setModule ( ModuleQuery :: create ( ) -> findPk ( $ event -> getModuleId ( ) ) ) ; if ( $ event -> getModule ( ) -> getActivate ( ) === BaseModule :: IS_NOT_ACTIVATED ) { $ this -> configurationFileHandler -> loadConfigurationFile ( $ event -> getModule ( ) ) ; } }
Load customer group definitions

@param ModuleToggleActivationEvent $event A module toggle activation event
Load customer group definitions