diff --git a/common/config/main-local.php b/common/config/main-local.php new file mode 100644 index 0000000..ab9071e --- /dev/null +++ b/common/config/main-local.php @@ -0,0 +1,25 @@ + [ + 'db' => [ + 'class' => 'yii\db\Connection', + 'dsn' => 'pgsql:host=localhost;port=5432;dbname=artbox_db', + 'username' => 'postgres', + 'password' => '', + 'schemaMap' => [ + 'pgsql'=> [ + 'class'=>'yii\db\pgsql\Schema', + 'defaultSchema' => 'public' + ] + ], + ], + 'mailer' => [ + 'class' => 'yii\swiftmailer\Mailer', + 'viewPath' => '@common/mail', + // send all mails to a file by default. You have to set + // 'useFileTransport' to false and configure a transport + // for the mailer to send real emails. + 'useFileTransport' => true, + ], + ], +]; diff --git a/common/config/main.php b/common/config/main.php index 8cf90ba..21154a7 100644 --- a/common/config/main.php +++ b/common/config/main.php @@ -3,7 +3,7 @@ return [ 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor', 'modules' => [ 'permit' => [ - 'class' => 'developeruz\db_rbac\Yii2DbRbac', + 'class' => 'app\modules\db_rbac\Yii2DbRbac', 'params' => [ 'userClass' => 'common\models\User' ] @@ -52,7 +52,7 @@ return [ //подключаем конфигурации API соц сетей для авторизации 'eauth' => [ - 'class' => 'common\components\nodge\eauth\src\EAuth', + 'class' => 'nodge\eauth\EAuth', 'popup' => true, // Use the popup window instead of redirecting. 'cache' => false, // Cache component name or false to disable cache. Defaults to 'cache' on production environments. 'cacheExpire' => 0, // Cache lifetime. Defaults to 0 - means unlimited. @@ -63,86 +63,86 @@ return [ 'services' => [ // You can change the providers and their classes. 'google' => [ // register your app here: https://code.google.com/apis/console/ - 'class' => 'common\components\nodge\eauth\src\services\GoogleOAuth2Service', + 'class' => 'nodge\eauth\services\GoogleOAuth2Service', 'clientId' => 'artbox-1138', 'clientSecret' => '', 'title' => 'Google', ], 'twitter' => [ // register your app here: https://dev.twitter.com/apps/new - 'class' => 'common\components\nodge\eauth\src\services\TwitterOAuth1Service', + 'class' => 'nodge\eauth\services\TwitterOAuth1Service', 'key' => '8vReLxI63vTs98MBMqhvrszwy', 'secret' => 'jOqNbHIkQw4cVKKJkgrMtaEeCcfbeT1GTik4pF6O9D7AmqcwOG', ], 'yandex' => [ // register your app here: https://oauth.yandex.ru/client/my - 'class' => 'common\components\nodge\eauth\src\services\YandexOAuth2Service', + 'class' => 'nodge\eauth\services\YandexOAuth2Service', 'clientId' => 'ea13195ac0424ff8a190838bec41bb71', 'clientSecret' => '911f2c9afcbf4f5f9319b3134c096c86', 'title' => 'Yandex', ], 'facebook' => [ // register your app here: https://developers.facebook.com/apps/ - 'class' => 'common\components\nodge\eauth\src\services\FacebookOAuth2Service', + 'class' => 'nodge\eauth\services\FacebookOAuth2Service', 'clientId' => '1642047622727997', 'clientSecret' => 'f5b7ba4f062a568678b764fc74cc416e', ], 'yahoo' => [ - 'class' => 'common\components\nodge\eauth\src\services\YahooOpenIDService', + 'class' => 'nodge\eauth\services\YahooOpenIDService', //'realm' => '*.example.org', // your domain, can be with wildcard to authenticate on subdomains. ], 'linkedin' => [ // register your app here: https://www.linkedin.com/secure/developer - 'class' => 'common\components\nodge\eauth\src\services\LinkedinOAuth1Service', + 'class' => 'nodge\eauth\services\LinkedinOAuth1Service', 'key' => '77s41eixn3dyvo', 'secret' => '1xLZQ7RRK6RNjo4U', 'title' => 'LinkedIn (OAuth1)', ], 'linkedin_oauth2' => [ // register your app here: https://www.linkedin.com/secure/developer - 'class' => 'common\components\nodge\eauth\src\services\LinkedinOAuth2Service', + 'class' => 'nodge\eauth\services\LinkedinOAuth2Service', 'clientId' => '77s41eixn3dyvo', 'clientSecret' => '1xLZQ7RRK6RNjo4U', 'title' => 'LinkedIn (OAuth2)', ], 'github' => [ // register your app here: https://github.com/settings/applications - 'class' => 'common\components\nodge\eauth\src\services\GitHubOAuth2Service', + 'class' => 'nodge\eauth\services\GitHubOAuth2Service', 'clientId' => 'd00283b5cfb225cd1600', 'clientSecret' => 'f482361fad7184819d452f421c8b09db60830b42', ], 'live' => [ // register your app here: https://account.live.com/developers/applications/index - 'class' => 'common\components\nodge\eauth\src\services\LiveOAuth2Service', + 'class' => 'nodge\eauth\services\LiveOAuth2Service', 'clientId' => '00000000481796AE', 'clientSecret' => 'rt9GiJrlKz3sE6CvdOeuwWyYbl1tQT03', ], 'steam' => [ - 'class' => 'common\components\nodge\eauth\src\services\SteamOpenIDService', + 'class' => 'nodge\eauth\services\SteamOpenIDService', //'realm' => '*.example.org', // your domain, can be with wildcard to authenticate on subdomains. ], 'instagram' => [ // register your app here: https://instagram.com/developer/register/ - 'class' => 'common\components\nodge\eauth\src\services\InstagramOAuth2Service', + 'class' => 'nodge\eauth\services\InstagramOAuth2Service', 'clientId' => '...', 'clientSecret' => '...', ], 'vkontakte' => [ // register your app here: https://vk.com/editapp?act=create&site=1 - 'class' => 'common\components\nodge\eauth\src\services\VKontakteOAuth2Service', + 'class' => 'nodge\eauth\services\VKontakteOAuth2Service', 'clientId' => '5155388', 'clientSecret' => 'jxgmdGVQw7huGKRpnX3a', ], 'mailru' => [ // register your app here: http://api.mail.ru/sites/my/add - 'class' => 'common\components\nodge\eauth\src\services\MailruOAuth2Service', + 'class' => 'nodge\eauth\services\MailruOAuth2Service', 'clientId' => '739322', 'clientSecret' => 'd6ce7be6ff791375adff58fe0e4460b2', ], 'odnoklassniki' => [ // register your app here: http://dev.odnoklassniki.ru/wiki/pages/viewpage.action?pageId=13992188 // ... or here: http://www.odnoklassniki.ru/dk?st.cmd=appsInfoMyDevList&st._aid=Apps_Info_MyDev - 'class' => 'common\components\nodge\eauth\src\services\OdnoklassnikiOAuth2Service', + 'class' => 'nodge\eauth\services\OdnoklassnikiOAuth2Service', 'clientId' => '...', 'clientSecret' => '...', 'clientPublic' => '...', @@ -157,7 +157,7 @@ return [ [ 'class' => 'yii\log\FileTarget', 'logFile' => '@app/runtime/logs/eauth.log', - 'categories' => ['common\components\nodge\eauth\nodge\eauth\*'], + 'categories' => ['nodge\eauth\*'], 'logVars' => [], ], ], -- libgit2 0.21.4