We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c9c8b20 + 12880b8 commit a9cbfe9Copy full SHA for a9cbfe9
logging/monolog_console.rst
@@ -45,11 +45,9 @@ The example above could then be rewritten as::
45
46
class YourCommand extends Command
47
{
48
- private $logger;
49
-
50
- public function __construct(LoggerInterface $logger)
51
- {
52
- $this->logger = $logger;
+ public function __construct(
+ private LoggerInterface $logger,
+ ) {
53
}
54
55
protected function execute(InputInterface $input, OutputInterface $output)
0 commit comments