Ejemplo n.º 1
0
 /**
  * Delete Expired Captcha Images
  *
  * @return \Magento\Captcha\Model\Observer
  */
 public function deleteExpiredImages()
 {
     foreach ($this->_storeManager->getWebsites() as $website) {
         $this->_deleteExpiredImagesForWebsite($this->_helper, $website, $website->getDefaultStore());
     }
     $this->_deleteExpiredImagesForWebsite($this->_adminHelper);
     return $this;
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function getWebsites($withDefault = false, $codeKey = false)
 {
     $result = $this->decoratedStoreManager->getWebsites($withDefault, $codeKey);
     $this->dispatchInitCurrentStoreAfterEvent();
     return $result;
 }