Подменены все ключевые сущности на наши

This commit is contained in:
ErickSkrauch
2016-11-29 23:15:56 +03:00
parent 5f07834f45
commit 4f259a9dc7
7 changed files with 55 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
<?php
$params = array_merge(
require(__DIR__ . '/../../common/config/params.php'),
require(__DIR__ . '/params.php')
require __DIR__ . '/../../common/config/params.php',
require __DIR__ . '/params.php'
);
return [
@@ -65,6 +65,10 @@ return [
'oauth' => [
'class' => api\components\OAuth2\Component::class,
'grantTypes' => ['authorization_code'],
'grantMap' => [
'authorization_code' => api\components\OAuth2\Grants\AuthCodeGrant::class,
'refresh_token' => api\components\OAuth2\Grants\RefreshTokenGrant::class,
],
],
'errorHandler' => [
'class' => api\components\ErrorHandler::class,