@@ -51,7 +51,7 @@ class ConsoleHandler extends AbstractProcessingHandler implements EventSubscribe
51
51
OutputInterface::VERBOSITY_VERY_VERBOSE => Logger::INFO ,
52
52
OutputInterface::VERBOSITY_DEBUG => Logger::DEBUG ,
53
53
];
54
- private $ consoleFormaterOptions ;
54
+ private $ consoleFormatterOptions ;
55
55
56
56
/**
57
57
* @param OutputInterface|null $output The console output to use (the handler remains disabled when passing null
@@ -60,7 +60,7 @@ class ConsoleHandler extends AbstractProcessingHandler implements EventSubscribe
60
60
* @param array $verbosityLevelMap Array that maps the OutputInterface verbosity to a minimum logging
61
61
* level (leave empty to use the default mapping)
62
62
*/
63
- public function __construct (OutputInterface $ output = null , bool $ bubble = true , array $ verbosityLevelMap = [], array $ consoleFormaterOptions = [])
63
+ public function __construct (OutputInterface $ output = null , bool $ bubble = true , array $ verbosityLevelMap = [], array $ consoleFormatterOptions = [])
64
64
{
65
65
parent ::__construct (Logger::DEBUG , $ bubble );
66
66
$ this ->output = $ output ;
@@ -69,7 +69,7 @@ public function __construct(OutputInterface $output = null, bool $bubble = true,
69
69
$ this ->verbosityLevelMap = $ verbosityLevelMap ;
70
70
}
71
71
72
- $ this ->consoleFormaterOptions = $ consoleFormaterOptions ;
72
+ $ this ->consoleFormatterOptions = $ consoleFormatterOptions ;
73
73
}
74
74
75
75
/**
@@ -159,13 +159,13 @@ protected function getDefaultFormatter(): FormatterInterface
159
159
return new LineFormatter ();
160
160
}
161
161
if (!$ this ->output ) {
162
- return new ConsoleFormatter ($ this ->consoleFormaterOptions );
162
+ return new ConsoleFormatter ($ this ->consoleFormatterOptions );
163
163
}
164
164
165
165
return new ConsoleFormatter (array_replace ([
166
166
'colors ' => $ this ->output ->isDecorated (),
167
167
'multiline ' => OutputInterface::VERBOSITY_DEBUG <= $ this ->output ->getVerbosity (),
168
- ], $ this ->consoleFormaterOptions ));
168
+ ], $ this ->consoleFormatterOptions ));
169
169
}
170
170
171
171
/**
0 commit comments