<?php

$config = [
    'components' => [
        'request'    => [
            'cookieValidationKey' => 'TgLk9hsiPkJA7vZWcbYCZb7QU_vvwaKa',
            'csrfParam'           => '_backendCsrf',
            'baseUrl'             => '/adkot',
        ],

        'user'       => [
            'identityCookie' => [
                'name' => '_backendUser', // unique for backend
                'path' => '/' // set it to correct path for backend app.
            ]
        ],

        'session'    => [
            'name'     => '_backendSessionId', // unique for backend
            'savePath' => __DIR__ . '/../runtime/sessions' // set it to correct path for backend app.
        ],

        'urlManager' => [
            'baseUrl'         => '/adkot', // change to your app base folder name
            'enablePrettyUrl' => true,
            'showScriptName'  => false,
            //'scriptUrl'=>'/',
            'rules' => [
                '<module:\w+>/<controller:\w+>/<action:[\w-]+>' => '<module>/<controller>/<action>',
                //'<controller:\w+>/<action:[\w-]+>/<id:\d+>' => '<controller>/<action>'
            ],
        ],
    ],
];

if (!YII_ENV_TEST) {
    // configuration adjustments for 'dev' environment
    $config['bootstrap'][] = 'debug';
    $config['modules']['debug'] = [
        'class' => 'yii\debug\Module',
    ];

    $config['bootstrap'][] = 'gii';
    $config['modules']['gii'] = [
        'class' => 'yii\gii\Module',
    ];
}

return $config;
