upgrade GlobalConsoleCommand.php