diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 255eba47..0e07ed56 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -267,6 +267,7 @@ * - [bubble]: bool, defaults to true * - [timeout]: float * - [connection_timeout]: float + * - [exclude_fields]: array, defaults to empty array * * - slackwebhook: * - webhook_url: slack webhook URL @@ -278,6 +279,7 @@ * - [include_extra]: bool, defaults to false * - [level]: level name or int value, defaults to DEBUG * - [bubble]: bool, defaults to true + * - [exclude_fields]: array, defaults to empty array * * - slackbot: * - team: slack team slug @@ -546,6 +548,7 @@ public function getConfigTreeBuilder(): TreeBuilder ->scalarNode('use_attachment')->defaultTrue()->end() // slack & slackwebhook ->scalarNode('use_short_attachment')->defaultFalse()->end() // slack & slackwebhook ->scalarNode('include_extra')->defaultFalse()->end() // slack & slackwebhook + ->variableNode('exclude_fields')->defaultValue([])->end() // slack & slackwebhook ->scalarNode('icon_emoji')->defaultNull()->end() // slack & slackwebhook ->scalarNode('webhook_url')->end() // slackwebhook ->scalarNode('team')->end() // slackbot diff --git a/DependencyInjection/MonologExtension.php b/DependencyInjection/MonologExtension.php index 1d47a984..5efbb774 100644 --- a/DependencyInjection/MonologExtension.php +++ b/DependencyInjection/MonologExtension.php @@ -664,6 +664,7 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler $handler['bubble'], $handler['use_short_attachment'], $handler['include_extra'], + $handler['exclude_fields'], ]); if (isset($handler['timeout'])) { $definition->addMethodCall('setTimeout', [$handler['timeout']]); @@ -684,6 +685,7 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler $handler['include_extra'], $handler['level'], $handler['bubble'], + $handler['exclude_fields'], ]); break;