Skip to content

Commit

Permalink
Adopt debug (#619)
Browse files Browse the repository at this point in the history
* Ignore locale middleware for gii controllers

* Adopt debug
  • Loading branch information
xepozz authored Nov 2, 2024
1 parent fc9a219 commit 697842d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions blog/config/common/di/router.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
},
];

0 comments on commit 697842d

Please sign in to comment.