Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | protected function execute(InputInterface $input, OutputInterface $output) |
||
32 | { |
||
33 | $output->writeln('<fg=white;bg=cyan;options=bold>Fetching Bower dependencies</>'); |
||
34 | $process = new Process('cd vendor/victoire/victoire/Bundle/UIBundle/Resources/config && bower install'); |
||
35 | try { |
||
36 | $process->mustRun(); |
||
37 | |||
38 | echo $process->getOutput(); |
||
39 | } catch (ProcessFailedException $e) { |
||
40 | $output->writeln(sprintf('<error>%s</error>', 'Did you installed bower properly ?')); |
||
41 | $output->writeln(sprintf('<error>%s</error>', $e->getMessage())); |
||
42 | } |
||
43 | |||
44 | $output->writeln(sprintf('<info>%s</info>', $process->getOutput())); |
||
45 | $output->writeln('✅ <fg=green>Ok</> Assets fetched'); |
||
46 | } |
||
47 | } |
||
48 |