Skip to content

Commit

Permalink
Correção do bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
0x3175633435 committed Jul 19, 2018
1 parent c35dea8 commit 0b3d79e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ public function onBootstrap(MvcEvent $event)
/** @var Request $request */
$request = $event->getRequest();

/** @var LoggerInterface $logger */
$logger = $serviceLocator->get(LoggerInterface::class);
$logger->log($request);
if($serviceLocator->has(LoggerInterface::class)) {
/** @var LoggerInterface $logger */
$logger = $serviceLocator->get(LoggerInterface::class);
$logger->log($request);
}
}

/**
Expand Down

0 comments on commit 0b3d79e

Please sign in to comment.