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-new-relic-reporting
Model
Cron.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\NewRelicReporting\Model
;
7
8
use
Magento\NewRelicReporting\Model\Cron\ReportCounts
;
9
use
Magento\NewRelicReporting\Model\Cron\ReportModulesInfo
;
10
use
Magento\NewRelicReporting\Model\Cron\ReportNewRelicCron
;
11
12
class
Cron
13
{
17
protected
$config
;
18
22
protected
$reportModulesInfo
;
23
27
protected
$reportCounts
;
28
32
protected
$reportNewRelicCron
;
33
42
public
function
__construct
(
43
Config
$config
,
44
ReportModulesInfo
$reportModulesInfo
,
45
ReportCounts
$reportCounts
,
46
ReportNewRelicCron
$reportNewRelicCron
47
) {
48
$this->config =
$config
;
49
$this->reportModulesInfo =
$reportModulesInfo
;
50
$this->reportCounts =
$reportCounts
;
51
$this->reportNewRelicCron =
$reportNewRelicCron
;
52
}
53
59
public
function
runCron
()
60
{
61
if
($this->config->isCronEnabled()) {
62
$this->reportNewRelicCron->report();
63
$this->reportModulesInfo->report();
64
$this->reportCounts->report();
65
}
66
67
return
$this;
68
}
69
}
Magento\NewRelicReporting\Model\Cron\$reportModulesInfo
$reportModulesInfo
Definition:
Cron.php:22
Magento\NewRelicReporting\Model\Cron\$reportCounts
$reportCounts
Definition:
Cron.php:27
Magento\NewRelicReporting\Model\Cron\$reportNewRelicCron
$reportNewRelicCron
Definition:
Cron.php:32
Magento\NewRelicReporting\Model\Cron
Definition:
Cron.php:12
Magento\NewRelicReporting\Model\Cron\ReportCounts
Definition:
ReportCounts.php:17
Magento\NewRelicReporting\Model\Cron\$config
$config
Definition:
Cron.php:17
Magento\NewRelicReporting\Model
Magento\NewRelicReporting\Model\Cron\runCron
runCron()
Definition:
Cron.php:59
Magento\NewRelicReporting\Model\Cron\ReportModulesInfo
Definition:
ReportModulesInfo.php:14
Magento\NewRelicReporting\Model\Cron\ReportNewRelicCron
Definition:
ReportNewRelicCron.php:17
Magento\NewRelicReporting\Model\Cron\__construct
__construct(Config $config, ReportModulesInfo $reportModulesInfo, ReportCounts $reportCounts, ReportNewRelicCron $reportNewRelicCron)
Definition:
Cron.php:42
Magento\NewRelicReporting\Model\Config
Definition:
Config.php:11