修正console

This commit is contained in:
yunwuxin
2016-08-10 14:19:49 +08:00
parent b76e9a4190
commit a2fee88475
2 changed files with 3 additions and 12 deletions

View File

@@ -145,6 +145,9 @@ class Command
*/
public function run(Input $input, Output $output)
{
$this->input = $input;
$this->output = $output;
$this->getSynopsis(true);
$this->getSynopsis(false);

View File

@@ -19,11 +19,6 @@ use think\console\Output;
abstract class Make extends Command
{
/** @var Input */
protected $input;
/** @var Output */
protected $output;
protected $type;
@@ -34,13 +29,6 @@ abstract class Make extends Command
$this->addArgument('name', Argument::REQUIRED, "The name of the class");
}
public function run(Input $input, Output $output)
{
$this->input = $input;
$this->output = $output;
return parent::run($input, $output);
}
protected function execute(Input $input, Output $output)
{