diff --git a/blog/config/common/di/router.php b/blog/config/common/di/router.php index 0f7be58c..fcab40c4 100644 --- a/blog/config/common/di/router.php +++ b/blog/config/common/di/router.php @@ -11,7 +11,6 @@ use Yiisoft\Router\RouteCollectionInterface; use Yiisoft\Router\RouteCollectorInterface; use Yiisoft\Router\UrlGeneratorInterface; -use Yiisoft\Yii\Debug\Viewer\Middleware\ToolbarMiddleware; /** * @var Config $config @@ -39,10 +38,6 @@ Group::create()->routes(...$config->get('routes')), ); - if (!str_starts_with(getenv('YII_ENV') ?: '', 'prod')) { - $collector->middleware(ToolbarMiddleware::class); - } - return new RouteCollection($collector); }, ];