File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \DependencyInjection \Loader \Configurator ;
13
13
14
+ use Monolog \Formatter \FormatterInterface ;
14
15
use Symfony \Bridge \Monolog \Command \ServerLogCommand ;
16
+ use Symfony \Bridge \Monolog \Formatter \ConsoleFormatter ;
15
17
use Symfony \Bridge \Twig \Extension \DumpExtension ;
16
18
use Symfony \Component \HttpKernel \DataCollector \DumpDataCollector ;
17
19
use Symfony \Component \HttpKernel \EventListener \DumpListener ;
127
129
'html ' => inline_service (HtmlDescriptor::class)->args ([service ('var_dumper.html_dumper ' )]),
128
130
],
129
131
])
130
- ->tag ('console.command ' , [ ' command ' => ' server:dump ' ] )
132
+ ->tag ('console.command ' )
131
133
132
134
->set ('monolog.command.server_log ' , ServerLogCommand::class)
133
- ->tag ('console.command ' , ['command ' => 'server:log ' ])
134
135
;
136
+
137
+ if (class_exists (ConsoleFormatter::class) && interface_exists (FormatterInterface::class)) {
138
+ $ container ->services ()->get ('monolog.command.server_log ' )->tag ('console.command ' );
139
+ }
135
140
};
You can’t perform that action at this time.
0 commit comments