![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/cartforge.co/pub/ |
<?php /** * Scheduled jobs entry point * * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ use Magento\Store\Model\Store; use Magento\Store\Model\StoreManager; require dirname(__DIR__) . '/app/bootstrap.php'; if (php_sapi_name() === 'cli') { echo "You cannot run this from the command line." . PHP_EOL . "Run \"php bin/magento cron:run\" instead." . PHP_EOL; exit(1); } else { $opt = $_GET; } try { foreach ($opt as $key => $value) { $opt[$key] = escapeshellarg($value); } $opt['standaloneProcessStarted'] = '0'; $params = $_SERVER; $params[StoreManager::PARAM_RUN_CODE] = 'admin'; $params[Store::CUSTOM_ENTRY_POINT_PARAM] = true; $bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $params); /** @var \Magento\Framework\App\Cron $app */ $app = $bootstrap->createApplication(\Magento\Framework\App\Cron::class, ['parameters' => $opt]); $bootstrap->run($app); } catch (\Exception $e) { echo $e; exit(1); }