Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
DeleteOldAttempts Class Reference

Public Member Functions

 __construct (\Magento\Captcha\Model\ResourceModel\LogFactory $resLogFactory)
 
 execute ()
 

Protected Attributes

 $resLogFactory
 

Detailed Description

Captcha cron actions

Definition at line 11 of file DeleteOldAttempts.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( \Magento\Captcha\Model\ResourceModel\LogFactory  $resLogFactory)
Parameters
\Magento\Captcha\Model\ResourceModel\LogFactory$resLogFactory

Definition at line 21 of file DeleteOldAttempts.php.

23  {
24  $this->resLogFactory = $resLogFactory;
25  }

Member Function Documentation

◆ execute()

execute ( )

Delete Unnecessary logged attempts

Returns
\Magento\Captcha\Cron\DeleteOldAttempts

Definition at line 32 of file DeleteOldAttempts.php.

33  {
34  $this->resLogFactory->create()->deleteOldAttempts();
35 
36  return $this;
37  }

Field Documentation

◆ $resLogFactory

$resLogFactory
protected

Definition at line 16 of file DeleteOldAttempts.php.


The documentation for this class was generated from the following file: