Skip to content

Commit 0f6b6eb

Browse files
committed
minor #19772 [Console] Update monolog_console.rst (suizumasahar01)
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
2 parents 115be6f + 82723f1 commit 0f6b6eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

logging/monolog_console.rst

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ The example above could then be rewritten as::
4646

4747
public function __construct(LoggerInterface $logger)
4848
{
49+
parent::__construct();
4950
$this->logger = $logger;
5051
}
5152

0 commit comments

Comments
 (0)