Skip to content

Commit 8237dc4

Browse files
Tib-zHypeMC
authored andcommitted
Use RuntimeException instead of InvalidConfigurationException in extension
Co-authored-by: HypeMC <[email protected]>
1 parent d21bbcd commit 8237dc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DependencyInjection/MonologExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler
242242
$publisher->setPublic(false);
243243
} elseif (class_exists('Gelf\MessagePublisher')) {
244244
if (isset($handler['publisher']['encoder']) && 'compressed_json' !== $handler['publisher']['encoder']) {
245-
throw new InvalidConfigurationException('The Gelf\MessagePublisher publisher supports only the compressed json encoding. Omit the option to use the default encoding or use "compressed_json" as the encoder option.');
245+
throw new \RuntimeException('The Gelf\MessagePublisher publisher supports only the compressed json encoding. Omit the option to use the default encoding or use "compressed_json" as the encoder option.');
246246
}
247247
$publisher = new Definition('Gelf\MessagePublisher', [
248248
$handler['publisher']['hostname'],

0 commit comments

Comments
 (0)