mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
修正console
This commit is contained in:
@@ -145,6 +145,9 @@ class Command
|
|||||||
*/
|
*/
|
||||||
public function run(Input $input, Output $output)
|
public function run(Input $input, Output $output)
|
||||||
{
|
{
|
||||||
|
$this->input = $input;
|
||||||
|
$this->output = $output;
|
||||||
|
|
||||||
$this->getSynopsis(true);
|
$this->getSynopsis(true);
|
||||||
$this->getSynopsis(false);
|
$this->getSynopsis(false);
|
||||||
|
|
||||||
|
|||||||
@@ -19,11 +19,6 @@ use think\console\Output;
|
|||||||
|
|
||||||
abstract class Make extends Command
|
abstract class Make extends Command
|
||||||
{
|
{
|
||||||
/** @var Input */
|
|
||||||
protected $input;
|
|
||||||
|
|
||||||
/** @var Output */
|
|
||||||
protected $output;
|
|
||||||
|
|
||||||
protected $type;
|
protected $type;
|
||||||
|
|
||||||
@@ -34,13 +29,6 @@ abstract class Make extends Command
|
|||||||
$this->addArgument('name', Argument::REQUIRED, "The name of the class");
|
$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)
|
protected function execute(Input $input, Output $output)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user