Commit a4210f25 authored by kzyryanov's avatar kzyryanov
Browse files

done tasks new

parent bfec80d4
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -13,8 +13,10 @@ $config = [
    ],
    'components' => [
        'request' => [
            // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
            'cookieValidationKey' => 'OsrMbvjpP9SCngWzSP4-2HnMMSFODuBl',
            'parsers' => [
                'application/json' => 'yii\web\JsonParser',
            ]
        ],
        'cache' => [
            'class' => 'yii\caching\FileCache',
@@ -42,14 +44,19 @@ $config = [
            ],
        ],
        'db' => $db,
        /*
        'urlManager' => [
            'enablePrettyUrl' => true,
            'enableStrictParsing' => false,
            'showScriptName' => false,
            'rules' => [
                ['class' => 'yii\rest\UrlRule', 'controller' => 'api'],
            ],
        ]
    ],
    'controllerMap' => [
        'api' => [
            'class' => 'app\controllers\ApiController',
        ],
        */
    ],
    'params' => $params,
];