* @copyright 2007-2018 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ 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());