Egorka
6 years ago
7 changed files with 116 additions and 57 deletions
@ -1,3 +1,8 @@
|
||||
<?php |
||||
return [ |
||||
'backendTranslatedLanguages' => [ |
||||
'ru' => 'Русский', |
||||
'en' => 'English', |
||||
], |
||||
'backendDefaultLanguage' => 'ru', |
||||
]; |
||||
|
@ -1,10 +1,13 @@
|
||||
<?php |
||||
return [ |
||||
'cookieValidationKey' => '', |
||||
'cookieDomain' => '.domain.local', |
||||
'frontendHostInfo' => 'http://domain.local', |
||||
'backendHostInfo' => 'http://admin.domain.local', |
||||
'staticHostInfo' => 'http://static.domain.local', |
||||
'mailChimpKey' => '', |
||||
'mailChimpListId' => '', |
||||
'cookieValidationKey' => '', |
||||
'cookieDomain' => '.morework.local', |
||||
'staticPath' => dirname(__DIR__, 2) . '/static', |
||||
'frontendHostInfo' => 'http://morework.local', |
||||
'backendHostInfo' => 'http://admin.morework.local', |
||||
'staticHostInfo' => 'http://static.morework.local', |
||||
'supportEmail' => 'support@morework.local', |
||||
'adminEmail' => 'admin@morework.local', |
||||
'mailChimpKey' => '', |
||||
'mailChimpListId' => '', |
||||
]; |
||||
|
@ -1,3 +1,8 @@
|
||||
<?php |
||||
return [ |
||||
'backendTranslatedLanguages' => [ |
||||
'ru' => 'Русский', |
||||
'en' => 'English', |
||||
], |
||||
'backendDefaultLanguage' => 'ru', |
||||
]; |
||||
|
@ -1,8 +1,13 @@
|
||||
<?php |
||||
return [ |
||||
'cookieValidationKey' => '', |
||||
'cookieDomain' => '.morework.dev', |
||||
'frontendHostInfo' => 'http://morework.dev', |
||||
'backendHostInfo' => 'http://admin.morework.dev', |
||||
'staticHostInfo' => 'http://static.shop.dev', |
||||
'cookieValidationKey' => '', |
||||
'cookieDomain' => '.morework.local', |
||||
'staticPath' => dirname(__DIR__, 2) . '/static', |
||||
'frontendHostInfo' => 'http://morework.local', |
||||
'backendHostInfo' => 'http://admin.morework.local', |
||||
'staticHostInfo' => 'http://static.morework.local', |
||||
'supportEmail' => 'support@morework.local', |
||||
'adminEmail' => 'admin@morework.local', |
||||
'mailChimpKey' => '', |
||||
'mailChimpListId' => '', |
||||
]; |
||||
|
@ -1,33 +1,44 @@
|
||||
<?php |
||||
|
||||
$config = [ |
||||
'components' => [ |
||||
'authClientCollection' => [ |
||||
'class' => 'yii\authclient\Collection', |
||||
'clients' => [ |
||||
'yandex' => [ |
||||
'class' => 'yii\authclient\clients\Yandex', |
||||
'clientId' => '', |
||||
'clientSecret' => '', |
||||
], |
||||
'google' => [ |
||||
'class' => 'yii\authclient\clients\Google', |
||||
'clientId' => '', |
||||
'clientSecret' => '', |
||||
], |
||||
'facebook' => [ |
||||
'class' => 'yii\authclient\clients\Facebook', |
||||
'clientId' => '', |
||||
'clientSecret' => '', |
||||
], |
||||
'vk' => [ |
||||
'class' => 'yii\authclient\clients\VKontakte', |
||||
'clientId' => '', |
||||
'clientSecret' => '', |
||||
], |
||||
], |
||||
] |
||||
], |
||||
'components' => [ |
||||
'view' => [ |
||||
'theme' => [ |
||||
'basePath' => '@webroot/themes/sport', |
||||
'baseUrl' => '@web/themes/sport', |
||||
'pathMap' => [ |
||||
'@frontend/views' => '@webroot/themes/sport', |
||||
'@frontend/widgets' => '@webroot/themes/sport/widgets', |
||||
], |
||||
], |
||||
], |
||||
|
||||
'authClientCollection' => [ |
||||
'class' => 'yii\authclient\Collection', |
||||
'clients' => [ |
||||
'yandex' => [ |
||||
'class' => 'yii\authclient\clients\Yandex', |
||||
'clientId' => '', |
||||
'clientSecret' => '', |
||||
], |
||||
'google' => [ |
||||
'class' => 'yii\authclient\clients\Google', |
||||
'clientId' => '', |
||||
'clientSecret' => '', |
||||
], |
||||
'facebook' => [ |
||||
'class' => 'yii\authclient\clients\Facebook', |
||||
'clientId' => '', |
||||
'clientSecret' => '', |
||||
], |
||||
'vk' => [ |
||||
'class' => 'yii\authclient\clients\VKontakte', |
||||
'clientId' => '', |
||||
'clientSecret' => '', |
||||
], |
||||
], |
||||
] |
||||
], |
||||
]; |
||||
|
||||
return $config; |
||||
|
Loading…
Reference in new issue