Skip to content

Commit c2fd911

Browse files
committed
More cleanup
1 parent f4b3efa commit c2fd911

File tree

4 files changed

+0
-43
lines changed

4 files changed

+0
-43
lines changed

config/web/di/application.php

-6
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,4 @@
2121
'fallbackHandler' => Reference::to(NotFoundHandler::class),
2222
],
2323
],
24-
\Yiisoft\Yii\Middleware\Locale::class => [
25-
'__construct()' => [
26-
'supportedLocales' => $params['locale']['locales'],
27-
'ignoredRequestUrlPatterns' => $params['locale']['ignoredRequests'],
28-
],
29-
],
3024
];

config/web/events.php

-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,5 @@
22

33
declare(strict_types=1);
44

5-
use App\EventHandler\SetLocaleEventHandler;
6-
use Yiisoft\Yii\Middleware\Event\SetLocaleEvent;
7-
85
return [
9-
SetLocaleEvent::class => [[SetLocaleEventHandler::class, 'handle']],
106
];

config/web/params.php

-9
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,4 @@
1212
SessionMiddleware::class,
1313
Router::class,
1414
],
15-
16-
'locale' => [
17-
'locales' => ['en' => 'en-US', 'ru' => 'ru-RU', 'de' => 'de-DE'],
18-
'ignoredRequests' => [
19-
'/gii**',
20-
'/debug**',
21-
'/inspect**',
22-
],
23-
],
2415
];

src/EventHandler/SetLocaleEventHandler.php

-24
This file was deleted.

0 commit comments

Comments
 (0)