This commit is contained in:
2020-09-07 18:11:36 +08:00
parent c5c716f6e5
commit 03ab3bb92f
10 changed files with 68 additions and 171 deletions
+13
View File
@@ -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