Selaa lähdekoodia

[MonologBundle] Added path validation

Jordi Boggiano 14 vuotta sitten
vanhempi
commit
e8f2c0fe24

+ 2 - 0
src/Symfony/Bundle/MonologBundle/DependencyInjection/Configuration.php

@@ -70,6 +70,8 @@ class Configuration
                     ->validate()
                         ->ifTrue(function($v) { return 'fingerscrossed' === $v['type'] && !isset($v['handler']); })
                         ->thenInvalid('The handler has to be specified to use a FingersCrossedHandler')
+                        ->ifTrue(function($v) { return 'stream' === $v['type'] && !isset($v['path']); })
+                        ->thenInvalid('The path has to be specified to use a StreamHandler')
                     ->end()
                 ->end()
             ->end()