This commit is contained in:
2020-09-02 23:41:29 +08:00
parent f8e2492f44
commit 3886a01549
+12 -2
View File
@@ -9,9 +9,9 @@
namespace Snowflake; namespace Snowflake;
use Database\DatabasesProviders;
use Exception; use Exception;
use HttpServer\Server; use HttpServer\ServerProviders;
use ReflectionException;
use Snowflake\Abstracts\BaseApplication; use Snowflake\Abstracts\BaseApplication;
use Snowflake\Exception\NotFindClassException; use Snowflake\Exception\NotFindClassException;
@@ -31,6 +31,16 @@ class Application extends BaseApplication
public $id = 'uniqueId'; public $id = 'uniqueId';
/**
* @throws NotFindClassException
*/
public function init()
{
$this->import(DatabasesProviders::class);
$this->import(ServerProviders::class);
}
/** /**
* @param string $service * @param string $service
* @return $this * @return $this