mirror of
https://github.com/yiisoft/app.git
synced 2026-03-07 00:26:50 +01:00
37 lines
883 B
PHP
37 lines
883 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\ViewInjection\CommonViewInjection;
|
|
use App\ViewInjection\LayoutViewInjection;
|
|
use App\ViewInjection\TranslatorViewInjection;
|
|
use Yiisoft\Definitions\Reference;
|
|
use Yiisoft\Yii\View\CsrfViewInjection;
|
|
|
|
return [
|
|
'app' => [
|
|
'charset' => 'UTF-8',
|
|
'locale' => 'en',
|
|
'name' => 'My Project',
|
|
],
|
|
|
|
'yiisoft/aliases' => [
|
|
'aliases' => require __DIR__ . '/aliases.php',
|
|
],
|
|
|
|
'yiisoft/translator' => [
|
|
'locale' => 'en',
|
|
'fallbackLocale' => 'en',
|
|
'defaultCategory' => 'app',
|
|
],
|
|
|
|
'yiisoft/yii-view' => [
|
|
'injections' => [
|
|
Reference::to(CommonViewInjection::class),
|
|
Reference::to(CsrfViewInjection::class),
|
|
Reference::to(LayoutViewInjection::class),
|
|
Reference::to(TranslatorViewInjection::class),
|
|
],
|
|
],
|
|
];
|