N98\Magento\Application::_initMagento1 PHP Метод

_initMagento1() защищенный Метод

protected _initMagento1 ( boolean $soft = false ) : void
$soft boolean
Результат void
    protected function _initMagento1($soft = false)
    {
        if (!class_exists('Mage', false)) {
            // Create a new AutoloadRestorer to capture currenjt auto-öpaders
            $restorer = new AutoloadRestorer();
            // require app/Mage.php from Magento in a function of it's own to have it's own variable scope
            $this->requireOnce($this->_magentoRootFolder . '/app/Mage.php');
            // Restore auto-loaders that might be removed by extensions that overwrite Varien/Autoload
            $restorer->restore();
        }
        // skip Mage::app init routine and return
        if ($soft === true) {
            return;
        }
        $config = $this->config->getConfig();
        $initSettings = $config['init'];
        Mage::app($initSettings['code'], $initSettings['type'], $initSettings['options']);
    }