Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Nov 29, 2024
1 parent a7d204d commit 329be11
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Command/LoadDataFixturesDoctrineODMCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use Doctrine\Common\DataFixtures\Executor\MongoDBExecutor;
use Doctrine\Common\DataFixtures\Purger\MongoDBPurger;
use Psr\Log\AbstractLogger;
use Stringable;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
Expand Down Expand Up @@ -84,10 +85,12 @@ protected function execute(InputInterface $input, OutputInterface $output): int

$purger = new MongoDBPurger($dm);
$executor = new MongoDBExecutor($dm, $purger);
$executor->setLogger(new class($output) extends AbstractLogger {
public function __construct(private readonly OutputInterface $output) {}
$executor->setLogger(new class ($output) extends AbstractLogger {
public function __construct(private readonly OutputInterface $output)
{
}

public function log(mixed $level, string|\Stringable $message, array $context = []): void
public function log(mixed $level, string|Stringable $message, array $context = []): void
{
$this->output->writeln(sprintf(' <comment>></comment> <info>%s</info>', $message));
}
Expand Down

0 comments on commit 329be11

Please sign in to comment.