改名
This commit is contained in:
@@ -18,6 +18,7 @@ use Snowflake\Abstracts\BaseApplication;
|
||||
use Snowflake\Abstracts\Config;
|
||||
use Snowflake\Abstracts\Input;
|
||||
use Snowflake\Exception\NotFindClassException;
|
||||
use Snowflake\Exception\ComponentException;
|
||||
|
||||
/**
|
||||
* Class Init
|
||||
@@ -64,6 +65,18 @@ class Application extends BaseApplication
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param string $command
|
||||
* @throws ComponentException
|
||||
*/
|
||||
public function command(string $command)
|
||||
{
|
||||
/** @var \Console\Application $abstracts */
|
||||
$abstracts = $this->get('console');
|
||||
$abstracts->register($command);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param $argv
|
||||
* @throws
|
||||
|
||||
Reference in New Issue
Block a user