This commit is contained in:
2020-09-02 18:13:16 +08:00
parent ac5c6b0320
commit 5f700016b0
3 changed files with 32 additions and 3 deletions
+30
View File
@@ -0,0 +1,30 @@
<?php
namespace Database;
use Exception;
use HttpServer\Server;
use Snowflake\Abstracts\Component;
use Snowflake\Config;
use Snowflake\Exception\ConfigException;
use Snowflake\Snowflake;
/**
* Class DatabasesProviders
* @package Database
*/
class ServerProviders extends Component
{
/**
* @throws Exception
*/
public function onImport()
{
Snowflake::get()->set('server', [
'class' => Server::class
]);
}
}