Skip to content

Commit

Permalink
fixes symfony#342 add rfc option for syslogudp handler
Browse files Browse the repository at this point in the history
  • Loading branch information
gwinn committed Feb 1, 2021
1 parent b9b322d commit 1de7f9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@
* - [level]: level name or int value, defaults to DEBUG
* - [bubble]: bool, defaults to true
* - [ident]: string, defaults to
* - [rfc]: string, defaults to
*
* - swift_mailer:
* - from_email: optional if email_prototype is given
Expand Down Expand Up @@ -486,6 +487,7 @@ public function getConfigTreeBuilder()
->scalarNode('title')->defaultNull()->end() // pushover
->scalarNode('host')->defaultNull()->end() // syslogudp & hipchat
->scalarNode('port')->defaultValue(514)->end() // syslogudp
->scalarNode('rfc')->defaultNull()->end() // syslogudp
->arrayNode('publisher')
->canBeUnset()
->beforeNormalization()
Expand Down
3 changes: 3 additions & 0 deletions DependencyInjection/MonologExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,9 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler
if ($handler['ident']) {
$definition->addArgument($handler['ident']);
}
if ($handler['rfc']) {
$definition->addArgument($handler['rfc']);
}
break;

case 'swift_mailer':
Expand Down

0 comments on commit 1de7f9c

Please sign in to comment.