Exemple #1
0
 /**
  * Theme registration
  *
  * @param \Magento\Framework\Event\Observer $observer
  * @return $this
  */
 public function themeRegistration(\Magento\Framework\Event\Observer $observer)
 {
     $pathPattern = $observer->getEvent()->getPathPattern();
     try {
         $this->_registration->register($pathPattern);
     } catch (\Magento\Framework\Model\Exception $e) {
         $this->_logger->logException($e);
     }
     return $this;
 }
Exemple #2
0
 /**
  * Register themes by pattern
  * Use this method only with database isolation
  *
  * @return \Magento\Core\Model\Theme\RegistrationTest
  */
 protected function registerThemes()
 {
     $pathPattern = 'frontend/*/theme.xml';
     $this->_model->register($pathPattern);
     return $this;
 }