|
|
@@ -16,11 +16,7 @@ namespace Cake\Console;
|
|
|
|
|
|
use Cake\Command\HelpCommand;
|
|
|
use Cake\Command\VersionCommand;
|
|
|
-use Cake\Console\CommandCollection;
|
|
|
-use Cake\Console\CommandCollectionAwareInterface;
|
|
|
-use Cake\Console\ConsoleIo;
|
|
|
use Cake\Console\Exception\StopException;
|
|
|
-use Cake\Console\Shell;
|
|
|
use Cake\Core\ConsoleApplicationInterface;
|
|
|
use Cake\Core\HttpApplicationInterface;
|
|
|
use Cake\Core\PluginApplicationInterface;
|
|
|
@@ -160,7 +156,7 @@ class CommandRunner implements EventDispatcherInterface
|
|
|
list($name, $argv) = $this->longestCommandName($commands, $argv);
|
|
|
$name = $this->resolveName($commands, $io, $name);
|
|
|
|
|
|
- $result = Shell::CODE_ERROR;
|
|
|
+ $result = Command::CODE_ERROR;
|
|
|
$shell = $this->getShell($io, $commands, $name);
|
|
|
if ($shell instanceof Shell) {
|
|
|
$result = $this->runShell($shell, $argv);
|
|
|
@@ -170,13 +166,13 @@ class CommandRunner implements EventDispatcherInterface
|
|
|
}
|
|
|
|
|
|
if ($result === null || $result === true) {
|
|
|
- return Shell::CODE_SUCCESS;
|
|
|
+ return Command::CODE_SUCCESS;
|
|
|
}
|
|
|
if (is_int($result)) {
|
|
|
return $result;
|
|
|
}
|
|
|
|
|
|
- return Shell::CODE_ERROR;
|
|
|
+ return Command::CODE_ERROR;
|
|
|
}
|
|
|
|
|
|
/**
|