Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
38 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
39 | { |
||
40 | $env = $input->getOption('env') ?? 'dev'; |
||
41 | |||
42 | $io = new SymfonyStyle($input, $output); |
||
43 | $io->confirm("Using {$env} envirenment. Continue?", true); |
||
44 | |||
45 | $fixturesLoaded = $this->entityManager->loadFixtures(["_{$env}.yaml"]); |
||
46 | $io->success("Fixtures loaded: {$fixturesLoaded}"); |
||
47 | |||
48 | return 0; |
||
49 | } |
||
51 |