Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-captcha
Cron
DeleteOldAttempts.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Captcha\Cron
;
7
11
class
DeleteOldAttempts
12
{
16
protected
$resLogFactory
;
17
21
public
function
__construct
(
22
\
Magento
\Captcha\Model\
ResourceModel
\LogFactory
$resLogFactory
23
) {
24
$this->resLogFactory =
$resLogFactory
;
25
}
26
32
public
function
execute
()
33
{
34
$this->resLogFactory->create()->deleteOldAttempts();
35
36
return
$this;
37
}
38
}
Magento\Catalog\Model\ResourceModel\Product
Definition:
CollectionTest.php:6
Magento\Captcha\Cron\DeleteOldAttempts
Definition:
DeleteOldAttempts.php:11
Magento\Captcha\Cron\DeleteOldAttempts\$resLogFactory
$resLogFactory
Definition:
DeleteOldAttempts.php:16
Magento\Captcha\Cron
Definition:
DeleteExpiredImages.php:6
Magento\Captcha\Cron\DeleteOldAttempts\__construct
__construct(\Magento\Captcha\Model\ResourceModel\LogFactory $resLogFactory)
Definition:
DeleteOldAttempts.php:21
Magento
Magento\Captcha\Cron\DeleteOldAttempts\execute
execute()
Definition:
DeleteOldAttempts.php:32