Implemented contexts, optimizations
This commit is contained in:
@ -23,7 +23,8 @@ abstract class Command
|
||||
$this->shell->writeln($str);
|
||||
}
|
||||
|
||||
abstract public function getName();
|
||||
public function getName()
|
||||
{}
|
||||
|
||||
public function getDescription()
|
||||
{}
|
||||
@ -31,8 +32,8 @@ abstract class Command
|
||||
public function getHelp()
|
||||
{}
|
||||
|
||||
public function run(array $args)
|
||||
public function __invoke(...$args)
|
||||
{
|
||||
call_user_func_array([$this,"execute"], $args);
|
||||
call_user_func([$this,"execute"], ...$args);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user