Skip to content

Commit da558a2

Browse files
Tib-zHypeMC
andauthored
Use RuntimeException instead of InvalidConfigurationException in extension
Co-authored-by: HypeMC <[email protected]>
1 parent ab5a00a commit da558a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/MonologExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler
248248
$publisher->setPublic(false);
249249
} elseif (class_exists('Gelf\MessagePublisher')) {
250250
if (isset($handler['publisher']['encoder']) && 'compressed_json' !== $handler['publisher']['encoder']) {
251-
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.');
251+
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.');
252252
}
253253
$publisher = new Definition('Gelf\MessagePublisher', [
254254
$handler['publisher']['hostname'],

0 commit comments

Comments
 (0)