protected function setModuleControllers($moduleControllers, $moduleId, $module)
    {
        $controllersForThatModuleInDb = $this->getModuleControllerEntries($moduleId);
        $diff = $this->diff($controllersForThatModuleInDb, $moduleControllers);


        if ($diff) {
            $shopId = Registry::getConfig()->getShopId();
            $this->output->warning("in shop $shopId: $moduleId fixing module controllers");
            $this->output->warning(" (in md):"  . var_export($moduleControllers, true));
            $this->output->warning(" (in db):"  . var_export($controllersForThatModuleInDb, true));

            $this->deleteModuleControllers($moduleId);
            $this->resetModuleCache($module);
            if ($moduleControllers) {
                $this->validateModuleMetadataControllersOnActivation($moduleControllers);

                $classProviderStorage = $this->getClassProviderStorage();

                $classProviderStorage->add($moduleId, $moduleControllers);
            }

            $afterControllersForThatModuleInDb = $this->getModuleControllerEntries($moduleId);

            $this->needCacheClear = true;
        }

    }
protected function setModuleControllers($moduleControllers, $moduleId, $module)
    {
        $controllersForThatModuleInDb = $this->getModuleControllerEntries($moduleId);
        $diff = $this->diff($controllersForThatModuleInDb, $moduleControllers);


        if ($diff) {
            $shopId = Registry::getConfig()->getShopId();
            $this->output->warning("in shop $shopId: $moduleId fixing module controllers");
            $this->output->warning(" (in md):"  . var_export($moduleControllers, true));
            $this->output->warning(" (in db):"  . var_export($controllersForThatModuleInDb, true));

            $this->deleteModuleControllers($moduleId);
            $this->resetModuleCache($module);
            if ($moduleControllers) {
                $this->validateModuleMetadataControllersOnActivation($moduleControllers);

                $classProviderStorage = $this->getClassProviderStorage();

                $classProviderStorage->add($moduleId, $moduleControllers);
            }

            $afterControllersForThatModuleInDb = $this->getModuleControllerEntries($moduleId);

            $this->needCacheClear = true;
        }

    }
protected function setModuleControllers ( $ moduleControllers , $ moduleId , $ module ) { $ controllersForThatModuleInDb = $ this -> getModuleControllerEntries ( $ moduleId ) ; $ diff = $ this -> diff ( $ controllersForThatModuleInDb , $ moduleControllers ) ; if ( $ diff ) { $ shopId = Registry :: getConfig ( ) -> getShopId ( ) ; $ this -> output -> warning ( "in shop $shopId: $moduleId fixing module controllers" ) ; $ this -> output -> warning ( " (in md):" . var_export ( $ moduleControllers , true ) ) ; $ this -> output -> warning ( " (in db):" . var_export ( $ controllersForThatModuleInDb , true ) ) ; $ this -> deleteModuleControllers ( $ moduleId ) ; $ this -> resetModuleCache ( $ module ) ; if ( $ moduleControllers ) { $ this -> validateModuleMetadataControllersOnActivation ( $ moduleControllers ) ; $ classProviderStorage = $ this -> getClassProviderStorage ( ) ; $ classProviderStorage -> add ( $ moduleId , $ moduleControllers ) ; } $ afterControllersForThatModuleInDb = $ this -> getModuleControllerEntries ( $ moduleId ) ; $ this -> needCacheClear = true ; } }
Add controllers map for a given module Id to config

@param array  $moduleControllers Map of controller ids and class names
@param string $moduleId          The Id of the module
Add controllers map for a given module Id to config