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
magento2-base
pub
cron.php
Go to the documentation of this file.
1
<?php
9
use
Magento\Store\Model\Store
;
10
use
Magento\Store\Model\StoreManager
;
11
12
require dirname(
__DIR__
) .
'/app/bootstrap.php'
;
13
14
if
(php_sapi_name() ===
'cli'
) {
15
echo
"You cannot run this from the command line."
. PHP_EOL .
16
"Run \"php bin/magento cron:run\" instead."
. PHP_EOL;
17
exit
(1);
18
}
else
{
19
$opt = $_GET;
20
}
21
22
try
{
23
foreach
($opt as $key =>
$value
) {
24
$opt[$key] = escapeshellarg(
$value
);
25
}
26
$opt[
'standaloneProcessStarted'
] =
'0'
;
27
$params
= $_SERVER;
28
$params
[StoreManager::PARAM_RUN_CODE] =
'admin'
;
29
$params
[Store::CUSTOM_ENTRY_POINT_PARAM] =
true
;
30
$bootstrap
=
\Magento\Framework\App\Bootstrap::create
(
BP
,
$params
);
32
$app
=
$bootstrap
->createApplication(\
Magento
\Framework\
App
\Cron::class, [
'parameters'
=> $opt]);
33
$bootstrap
->run(
$app
);
34
}
catch
(\Exception $e) {
35
echo $e;
36
exit
(1);
37
}
$params
$params
Definition:
cron.php:27
Magento\Framework\App\Bootstrap\create
static create($rootDir, array $initParams, ObjectManagerFactory $factory=null)
Definition:
Bootstrap.php:119
Magento\Framework\App
Magento\Store\Model\StoreManager
Definition:
StoreManager.php:17
__DIR__
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition:
_bootstrap.php:60
$bootstrap
$bootstrap
Definition:
cron.php:30
$value
$value
Definition:
gender.phtml:16
exit
exit
Definition:
redirect.phtml:12
Magento
BP
const BP
Definition:
autoload.php:14
Magento\Store\Model\Store
Definition:
Store.php:38
$app
$app
Definition:
cron.php:32