* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ if (PHP_SAPI !== 'cli') { echo 'This script must be called from CLI'; exit(1); } require_once realpath(dirname(__FILE__) . '/../../modules/autoupgrade') . '/ajax-upgradetabconfig.php'; $container = autoupgrade_init_container(dirname(__FILE__)); $container->setLogger(new PrestaShop\Module\AutoUpgrade\Log\StreamedLogger()); $controller = new \PrestaShop\Module\AutoUpgrade\TaskRunner\Upgrade\AllUpgradeTasks($container); $controller->setOptions(getopt('', array('action::', 'channel::', 'data::'))); $controller->init(); exit($controller->run());