diff --git a/system/Application.php b/system/Application.php index c299028d..1c80e92e 100644 --- a/system/Application.php +++ b/system/Application.php @@ -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