* @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 dirname(__FILE__) . '/lib/RetailcrmCli.php'; function retailcrmCliInterruptHandler($signo) { RetailcrmLogger::output(sprintf( 'WARNING: Interrupt received, stopping... (%s)', print_r($signo, true) )); RetailcrmCli::clearCurrentJob(null); exit(1); } if (php_sapi_name() == 'cli') { $cli = new RetailcrmCli(__FILE__); $cli->execute('retailcrmCliInterruptHandler'); } else { include_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'index.php'; }