protected function initialize(InputInterface $input, OutputInterface $stdout)
 {
     parent::initialize($input, $stdout);
     if ($input->hasArgument('config_path') && ($configPath = $input->getArgument('config_path'))) {
         $this->configPath = $configPath;
     } else {
         $this->configPath = $this->getContainer()->getParameter('assetic.gulp.config_path');
     }
 }
예제 #2
0
 protected function initialize(InputInterface $input, OutputInterface $stdout)
 {
     if (null !== $input->getOption('forks')) {
         if (!class_exists('Spork\\ProcessManager')) {
             throw new \RuntimeException('The --forks option requires that package kriswallsmith/spork be installed');
         }
         if (!is_numeric($input->getOption('forks'))) {
             throw new \InvalidArgumentException('The --forks options must be numeric');
         }
         $this->spork = new ProcessManager(new WrappedEventDispatcher($this->getContainer()->get('event_dispatcher')), $this->getContainer()->getParameter('kernel.debug'));
     }
     parent::initialize($input, $stdout);
 }