Skip to content

Commit adc4df5

Browse files
authored
Fixed typos in monolog_console
- added missing `use` statement for `Command` class - fixed constructor method
1 parent 84fd734 commit adc4df5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

logging/monolog_console.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ current log level and the console verbosity.
3535
The example above could then be rewritten as::
3636

3737
use Psr\Log\LoggerInterface;
38+
use Symfony\Component\Console\Command\Command;
3839
use Symfony\Component\Console\Input\InputInterface;
3940
use Symfony\Component\Console\Output\OutputInterface;
4041
// ...
@@ -43,7 +44,7 @@ The example above could then be rewritten as::
4344
{
4445
private $logger;
4546

46-
public function __constructor(LoggerInterface $logger)
47+
public function __construct(LoggerInterface $logger)
4748
{
4849
$this->logger = $logger;
4950
}

0 commit comments

Comments
 (0)