mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Rework tests structure. Upgrade codeception to 2.5.3. Merge params configuration into app configuration.
This commit is contained in:
@@ -1,15 +1,12 @@
|
||||
<?php
|
||||
$params = array_merge(
|
||||
require __DIR__ . '/../../common/config/params.php',
|
||||
require __DIR__ . '/params.php'
|
||||
);
|
||||
|
||||
return [
|
||||
'id' => 'accounts-site-api',
|
||||
'basePath' => dirname(__DIR__),
|
||||
'bootstrap' => ['log', 'authserver', 'internal'],
|
||||
'bootstrap' => ['log', 'authserver', 'internal', 'mojang'],
|
||||
'controllerNamespace' => 'api\controllers',
|
||||
'params' => $params,
|
||||
'params' => [
|
||||
'authserverHost' => getenv('AUTHSERVER_HOST'),
|
||||
],
|
||||
'components' => [
|
||||
'user' => [
|
||||
'class' => api\components\User\Component::class,
|
||||
@@ -79,10 +76,7 @@ return [
|
||||
],
|
||||
],
|
||||
'modules' => [
|
||||
'authserver' => [
|
||||
'class' => api\modules\authserver\Module::class,
|
||||
'host' => $params['authserverHost'],
|
||||
],
|
||||
'authserver' => api\modules\authserver\Module::class,
|
||||
'session' => api\modules\session\Module::class,
|
||||
'mojang' => api\modules\mojang\Module::class,
|
||||
'internal' => api\modules\internal\Module::class,
|
||||
|
||||
Reference in New Issue
Block a user