Conditions | 2 |
Paths | 6 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 2 | Features | 0 |
1 | <?php |
||
29 | protected function execute(InputInterface $input, OutputInterface $output) |
||
30 | { |
||
31 | $path = $input->getArgument('path'); |
||
32 | $handlers = $input->getArgument('handlers'); |
||
33 | |||
34 | try { |
||
35 | $finder = new \Dumkaaa\BxOptimize\Finder\FilesFinder($path); |
||
36 | $handler = new \Dumkaaa\BxOptimize\Handler\HandlerProcessor($handlers); |
||
37 | |||
38 | $optimizer = new \Dumkaaa\BxOptimize\Optimizer($finder, $handler); |
||
39 | $optimizer->optimize(); |
||
40 | |||
41 | $output->writeln('<info>BxOptimization set up.</info>'); |
||
42 | } catch (\Exception $e) { |
||
43 | $output->writeln('<error>' . get_class($e) . ': ' . $e->getMessage() . '</error>'); |
||
44 | } |
||
45 | } |
||
46 | } |
||
47 |