diff --git a/src/LoggerAbstractServiceFactory.php b/src/LoggerAbstractServiceFactory.php index e392877b..141a34f2 100644 --- a/src/LoggerAbstractServiceFactory.php +++ b/src/LoggerAbstractServiceFactory.php @@ -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; }