12 lines
384 B
PHP
Executable File
12 lines
384 B
PHP
Executable File
<?php
|
|
require_once '../app/bootstrap.php';
|
|
$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $_SERVER);
|
|
$app = $bootstrap->createApplication(\Magento\Framework\App\Http::class);
|
|
$obj = $bootstrap->getObjectManager();
|
|
|
|
$state = $obj->get('\Magento\Framework\App\State');
|
|
$state->setAreaCode('global');
|
|
|
|
$disti = $obj->create('\IpSupply\CronJob\Cron\Disti');
|
|
$disti->execute();
|