* @copyright 2020 DIGITAL RETAIL TECHNOLOGIES SL * @license https://opensource.org/licenses/MIT The MIT License * * Don't forget to prefix your containers with your own identifier * to avoid any conflicts with others containers. */ declare(ticks = 1); require_once __DIR__ . '/lib/RetailcrmCli.php'; function retailcrmCliInterruptHandler($signo) { RetailcrmLogger::output('WARNING: Interrupt received, stopping...'); RetailcrmCli::clearCurrentJob(null); exit(1); } if (php_sapi_name() == 'cli') { $cli = new RetailcrmCli(__FILE__); $cli->execute('retailcrmCliInterruptHandler'); } else { include_once __DIR__ . DIRECTORY_SEPARATOR . 'index.php'; }