Skip to content

Commit

Permalink
minor #19772 [Console] Update monolog_console.rst (suizumasahar01)
Browse files Browse the repository at this point in the history
This PR was squashed before being merged into the 5.4 branch.

Discussion
----------

[Console] Update monolog_console.rst

<!--

If your pull request fixes a BUG, use the oldest maintained branch that contains
the bug (see https://symfony.com/releases for the list of maintained branches).

If your pull request documents a NEW FEATURE, use the same Symfony branch where
the feature was introduced (and `7.x` for features of unreleased versions).

-->
Regarding https://symfony.com/doc/5.x/logging/monolog_console.html, current sample doesn't work properly.
Added "parent::__construct();" to sample code.

Commits
-------

82723f1 [Console] Update monolog_console.rst
  • Loading branch information
javiereguiluz committed Apr 15, 2024
2 parents 115be6f + 82723f1 commit 0f6b6eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions logging/monolog_console.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ The example above could then be rewritten as::

public function __construct(LoggerInterface $logger)
{
parent::__construct();
$this->logger = $logger;
}

Expand Down

0 comments on commit 0f6b6eb

Please sign in to comment.