ソースを参照

Use undeprecated constants.

mscherer 7 年 前
コミット
3ca24494a1
1 ファイル変更3 行追加3 行削除
  1. 3 3
      src/Console/CommandRunner.php

+ 3 - 3
src/Console/CommandRunner.php

@@ -160,7 +160,7 @@ class CommandRunner implements EventDispatcherInterface
         list($name, $argv) = $this->longestCommandName($commands, $argv);
         list($name, $argv) = $this->longestCommandName($commands, $argv);
         $name = $this->resolveName($commands, $io, $name);
         $name = $this->resolveName($commands, $io, $name);
 
 
-        $result = Shell::CODE_ERROR;
+        $result = Command::CODE_ERROR;
         $shell = $this->getShell($io, $commands, $name);
         $shell = $this->getShell($io, $commands, $name);
         if ($shell instanceof Shell) {
         if ($shell instanceof Shell) {
             $result = $this->runShell($shell, $argv);
             $result = $this->runShell($shell, $argv);
@@ -170,13 +170,13 @@ class CommandRunner implements EventDispatcherInterface
         }
         }
 
 
         if ($result === null || $result === true) {
         if ($result === null || $result === true) {
-            return Shell::CODE_SUCCESS;
+            return Command::CODE_SUCCESS;
         }
         }
         if (is_int($result)) {
         if (is_int($result)) {
             return $result;
             return $result;
         }
         }
 
 
-        return Shell::CODE_ERROR;
+        return Command::CODE_ERROR;
     }
     }
 
 
     /**
     /**