Skip to content

Commit

Permalink
changed check for no middlewares
Browse files Browse the repository at this point in the history
  • Loading branch information
Joao Jacome committed Sep 21, 2018
1 parent c33ea67 commit 0574664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OnelogBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function boot()
GlobalNamespaceRegister::register('\\OneLog', OneLogStatic::class);
}

if (null !== ($middlewares = $this->container->getParameter('onelog.middlewares'))) {
if (!empty($middlewares = $this->container->getParameter('onelog.middlewares'))) {
$middlewareProcessor = $this->container->get(MiddlewareProcessor::class);
foreach ($middlewares as $middleware) {
$middlewareProcessor->registerMiddleware($this->container->get($middleware));
Expand Down

0 comments on commit 0574664

Please sign in to comment.