require_once __DIR__ . '/../common/autoload.php';
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE
);
ini_set('display_errors', 1
);
date_default_timezone_set('UTC'
);
set_time_limit(0
);
use Shopware\Recovery\Install\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;
if (PHP_SAPI === 'cli'
) { $input =
new ArgvInput();
$env =
$input->
getParameterOption(['--env', '-e'
], 'production'
);
$application =
new Application($env);
return $application->
run($input);
}// the execution time will be increased, because the import can take a while
ini_set('max_execution_time', 120
);
// Redirect to no mod rewrite path