main.php
814 Bytes
<?php
$mp_configuration = require( __DIR__ . '/../components/parsers/config.php');
return [
'language' => 'ru-RU',
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
'components' => [
'cache' => [
'class' => 'yii\caching\FileCache',
],
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
'module/<module:\w+>/<controller:\w+>/<action:\w+>' => '<module>/<controller>/<action>',
]
],
'multiparser'=>[
'class' => 'yii\multiparser\YiiMultiparser',
'configuration' => $mp_configuration,
'as behavior' => [
'class' => 'backend\components\parsers\CustomConverter',
],
],
],
];