Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
cron.php File Reference

Go to the source code of this file.

Variables

if(php_sapi_name()==='cli') else
 
 try
 
 $params = $_SERVER
 
 $params [StoreManager::PARAM_RUN_CODE] = 'admin'
 
 $params [Store::CUSTOM_ENTRY_POINT_PARAM] = true
 
 $bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $params)
 
 $app = $bootstrap->createApplication(\Magento\Framework\App\Cron::class, ['parameters' => $opt])
 

Variable Documentation

◆ $app

$app = $bootstrap->createApplication(\Magento\Framework\App\Cron::class, ['parameters' => $opt])

Definition at line 32 of file cron.php.

◆ $bootstrap

Definition at line 30 of file cron.php.

◆ $params [1/3]

$params = $_SERVER

Definition at line 27 of file cron.php.

◆ $params [2/3]

$params[StoreManager::PARAM_RUN_CODE] = 'admin'

Definition at line 28 of file cron.php.

◆ $params [3/3]

$params[Store::CUSTOM_ENTRY_POINT_PARAM] = true

Definition at line 29 of file cron.php.

◆ else

if (php_sapi_name()==='cli') else
Initial value:
{
$opt = $_GET

Definition at line 18 of file cron.php.

◆ try

try
Initial value:
{
foreach ($opt as $key => $value) {
$opt[$key] = escapeshellarg($value);
}
$opt['standaloneProcessStarted'] = '0'
$value
Definition: gender.phtml:16

Definition at line 22 of file cron.php.