/** * Initializes the aspect kernel. * * @return void */ public function initializeAspectKernel() { $cacheTypes = Mage::app()->useCache(); $aspectKernel = Danslo_Aop_Aspect_Kernel::getInstance(); $aspectKernel->init(array('debug' => Mage::getIsDeveloperMode() || empty($cacheTypes[self::AOP_CACHE_TYPE]), 'cacheDir' => $this->_getCacheDir())); self::$initialized = true; }
/** * Initializes the aspect kernel. * * @return void */ public static function initializeAspectKernel() { if (self::$initialized) { return; } $cacheTypes = Mage::app()->useCache(); $aspectKernel = Danslo_Aop_Aspect_Kernel::getInstance(); $aspectKernel->init(array('debug' => Mage::getIsDeveloperMode() || empty($cacheTypes[self::AOP_CACHE_TYPE]), 'cacheDir' => self::_getCacheDir(), 'excludePaths' => [Mage::getBaseDir() . DS . 'vendor' . DS . 'phpunit', Mage::getBaseDir() . DS . 'app'])); self::$initialized = true; }