Пример #1
0
 /**
  * Get resource model
  *
  * @return \Magento\Captcha\Model\ResourceModel\Log
  */
 protected function _getResourceModel()
 {
     return $this->_resLogFactory->create();
 }
 /**
  * Delete Unnecessary logged attempts
  *
  * @return \Magento\Captcha\Cron\DeleteOldAttempts
  */
 public function execute()
 {
     $this->resLogFactory->create()->deleteOldAttempts();
     return $this;
 }