/** * Class constructor */ public function __construct() { $this->_config = new Mage_Core_Model_Config(new Magento_ObjectManager_Zend()); $this->_config->loadBase(); $this->_config->loadModules(); $this->_initCommonDependencies(); }
public function loadModules() { $res = parent::loadModules(); $this->loadModulesConfiguration('xtest.default.xml', $this); $this->loadModulesConfiguration('xtest.xml', $this); return $res; }
/** * Initialize active modules configuration and data * * @return Mage_Core_Model_App */ protected function _initModules() { if (!$this->_config->loadModulesCache()) { $this->_config->loadModules(); if ($this->_config->isLocalConfigLoaded() && !$this->_shouldSkipProcessModulesUpdates()) { Varien_Profiler::start('mage::app::init::apply_db_schema_updates'); Mage_Core_Model_Resource_Setup::applyAllUpdates(); Varien_Profiler::stop('mage::app::init::apply_db_schema_updates'); } $this->_config->loadDb(); $this->_config->saveCache(); } return $this; }
/** * (non-PHPdoc) * @see Mage_Core_Model_Config::loadModules() */ public function loadModules() { parent::loadModules(); $this->_loadTestConfig(); $this->_loadTestCacheConfig(); return $this; }
/** * Initialize active modules configuration and data * * @return Mage_Core_Model_App */ protected function _initModules() { // If cache locking is enabled then use that if ((bool) (string) $this->_config->getNode(self::XML_PATH_CACHE_LOCK_ENABLE) === true) { return $this->_initModulesWithLocking(); } if (!$this->_config->loadModulesCache()) { $this->_config->loadModules(); if ($this->_config->isLocalConfigLoaded() && !$this->_shouldSkipProcessModulesUpdates()) { Varien_Profiler::start('mage::app::init::apply_db_schema_updates'); Mage_Core_Model_Resource_Setup::applyAllUpdates(); Varien_Profiler::stop('mage::app::init::apply_db_schema_updates'); } $this->_config->loadDb(); $this->_config->saveCache(); } return $this; }
/** * Initialize active modules configuration and data * * @return Mage_Core_Model_App */ protected function _initModules() { if (get_class($this->_config) === 'Made_Cache_Model_Config') { $backend = Mage::app()->getCacheInstance()->getFrontend()->getBackend(); if (get_class($backend) === 'Made_Cache_Redis_Backend') { return $this->_initModulesSafe(); } } if (!$this->_config->loadModulesCache()) { $this->_config->loadModules(); if ($this->_config->isLocalConfigLoaded() && !$this->_shouldSkipProcessModulesUpdates()) { Varien_Profiler::start('mage::app::init::apply_db_schema_updates'); Mage_Core_Model_Resource_Setup::applyAllUpdates(); Varien_Profiler::stop('mage::app::init::apply_db_schema_updates'); } $this->_config->loadDb(); $this->_config->saveCache(); } return $this; }