diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 255eba47..ca188efa 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -364,6 +364,7 @@ * - [disable_notification]: bool, defaults to false, sends the message silently. Users will receive a notification with no sound * - [split_long_messages]: bool, defaults to false, split messages longer than 4096 bytes into multiple messages * - [delay_between_messages]: bool, defaults to false, adds a 1sec delay/sleep between sending split messages + * - [topic]: int, defaults to null, message_thread_id, unique identifier for the target message thread (topic) of the forum; for forum supergroups only * * - sampling: * - handler: the wrapped handler's name @@ -594,6 +595,7 @@ public function getConfigTreeBuilder(): TreeBuilder ->booleanNode('disable_notification')->defaultNull()->end() // telegram ->booleanNode('split_long_messages')->defaultFalse()->end() // telegram ->booleanNode('delay_between_messages')->defaultFalse()->end() // telegram + ->scalarNode('topic')->defaultNull()->end() // telegram ->integerNode('factor')->defaultValue(1)->min(1)->end() // sampling ->arrayNode('tags') // loggly ->beforeNormalization() diff --git a/DependencyInjection/MonologExtension.php b/DependencyInjection/MonologExtension.php index 1d47a984..974a2824 100644 --- a/DependencyInjection/MonologExtension.php +++ b/DependencyInjection/MonologExtension.php @@ -349,6 +349,7 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler $handler['disable_notification'], $handler['split_long_messages'], $handler['delay_between_messages'], + $handler['topic'], ]); break;