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;
use Database\DatabasesProviders;
use Exception;
use HttpServer\Server;
use ReflectionException;
use HttpServer\ServerProviders;
use Snowflake\Abstracts\BaseApplication;
use Snowflake\Exception\NotFindClassException;
@@ -31,6 +31,16 @@ class Application extends BaseApplication
public $id = 'uniqueId';
/**
* @throws NotFindClassException
*/
public function init()
{
$this->import(DatabasesProviders::class);
$this->import(ServerProviders::class);
}
/**
* @param string $service
* @return $this