Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'weierophinney-hotfix/5254-improvement' into develop

* weierophinney-hotfix/5254-improvement:
  Improvement to zendframework/zendframework#5254
  • Loading branch information
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/LoggerAbstractServiceFactory.php
Expand Up @@ -95,19 +95,11 @@ protected function processConfig(&$config, ServiceLocatorInterface $services)
}

foreach ($config['writers'] as $index => $writerConfig) {
if (!isset($writerConfig['name'])
|| strtolower($writerConfig['name']) != 'db'
if (!isset($writerConfig['options']['db'])
|| !is_string($writerConfig['options']['db'])
) {
continue;
}
if (!isset($writerConfig['options'])
|| !isset($writerConfig['options']['db'])
) {
continue;
}
if (!is_string($writerConfig['options']['db'])) {
continue;
}
if (!$services->has($writerConfig['options']['db'])) {
continue;
}
Expand Down

0 comments on commit d91945a

Please sign in to comment.