This commit is contained in:
2020-09-02 18:21:22 +08:00
parent 96d9e527bb
commit e8aeff58e4
4 changed files with 37 additions and 5 deletions
+6 -3
View File
@@ -7,6 +7,7 @@ namespace HttpServer;
use Exception;
use HttpServer\Server;
use Snowflake\Abstracts\Component;
use Snowflake\Abstracts\Providers;
use Snowflake\Config;
use Snowflake\Exception\ConfigException;
use Snowflake\Snowflake;
@@ -15,15 +16,17 @@ use Snowflake\Snowflake;
* Class DatabasesProviders
* @package Database
*/
class ServerProviders extends Component
class ServerProviders extends Providers
{
/**
* @param \Snowflake\Application $application
* @throws Exception
*/
public function onImport()
public function onImport(\Snowflake\Application $application)
{
Snowflake::get()->set('server', [
$application->set('server', [
'class' => Server::class
]);
}