Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
AUDUL committed Nov 14, 2023
1 parent 9a954f6 commit 2b0db75
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions bundle/Command/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use CodeRhapsodie\IbexaMailingBundle\Entity\StatHit;
use CodeRhapsodie\IbexaMailingBundle\Entity\User;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Mapping\ClassMetadata;
use Doctrine\ORM\Tools\SchemaTool;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
Expand All @@ -32,14 +31,14 @@ protected function execute(InputInterface $input, OutputInterface $output)
$schemaTool = new SchemaTool($this->entityManager);

$sqls = $schemaTool->getCreateSchemaSql([
new ClassMetadata(Broadcast::class),
new ClassMetadata(Campaign::class),
new ClassMetadata(ConfirmationToken::class),
new ClassMetadata(Mailing::class),
new ClassMetadata(MailingList::class),
new ClassMetadata(Registration::class),
new ClassMetadata(StatHit::class),
new ClassMetadata(User::class),
$this->entityManager->getClassMetadata(Broadcast::class),
$this->entityManager->getClassMetadata(Campaign::class),
$this->entityManager->getClassMetadata(ConfirmationToken::class),
$this->entityManager->getClassMetadata(Mailing::class),
$this->entityManager->getClassMetadata(MailingList::class),
$this->entityManager->getClassMetadata(Registration::class),
$this->entityManager->getClassMetadata(StatHit::class),
$this->entityManager->getClassMetadata(User::class),
]);

foreach ($sqls as $sql) {
Expand Down

0 comments on commit 2b0db75

Please sign in to comment.