File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
DependencyInjection/Compiler
Tests/DependencyInjection/Compiler Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,9 @@ public function process(ContainerBuilder $container)
81
81
82
82
// create additional channels
83
83
foreach ($ container ->getParameter ('monolog.additional_channels ' ) as $ chan ) {
84
+ if ($ chan === 'app ' ) {
85
+ continue ;
86
+ }
84
87
$ loggerId = sprintf ('monolog.logger.%s ' , $ chan );
85
88
$ this ->createLogger ($ chan , $ loggerId , $ container );
86
89
$ container ->getDefinition ($ loggerId )->setPublic (true );
Original file line number Diff line number Diff line change @@ -134,6 +134,14 @@ public function testTagNotBreakingIfNoLogger()
134
134
$ this ->assertEquals (array (), $ dummyService ->getArguments ());
135
135
}
136
136
137
+ public function testChannelsConfigurationOptionSupportsAppChannel ()
138
+ {
139
+ $ container = $ this ->getFunctionalContainer ();
140
+
141
+ $ container ->setParameter ('monolog.additional_channels ' , array ('app ' ));
142
+ $ container ->compile ();
143
+ }
144
+
137
145
private function getContainer ()
138
146
{
139
147
$ container = new ContainerBuilder ();
@@ -202,6 +210,9 @@ private function getContainerWithSetter()
202
210
return $ container ;
203
211
}
204
212
213
+ /**
214
+ * @return ContainerBuilder
215
+ */
205
216
private function getFunctionalContainer ()
206
217
{
207
218
$ container = new ContainerBuilder ();
You can’t perform that action at this time.
0 commit comments