Conditions | 3 |
Paths | 4 |
Total Lines | 20 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
36 | protected function execute(InputInterface $input, OutputInterface $output) |
||
37 | { |
||
38 | $this->detectMagento($output, true); |
||
39 | if (!$this->initMagento()) { |
||
40 | return; |
||
41 | } |
||
42 | |||
43 | $this->setAdminArea(); |
||
44 | |||
45 | try { |
||
46 | $this |
||
47 | ->getObjectManager() |
||
48 | ->create(Pool::class) |
||
49 | ->generatePool(); |
||
50 | |||
51 | $output->writeln('<info>Gift card pool was generated.</info>'); |
||
52 | } catch (\Exception $e) { |
||
53 | $output->writeln('<error>Failed to generate gift card pool!</error>'); |
||
54 | } |
||
55 | } |
||
56 | } |
||
57 |