/**
  * Construct method
  *
  * @param GearmanCacheWrapper $gearmanCacheWrapper GearmanCacheWrapper
  * @param array               $defaultSettings     The default settings for the bundle
  */
 public function __construct(GearmanCacheWrapper $gearmanCacheWrapper, array $defaultSettings)
 {
     $this->workers = $gearmanCacheWrapper->getWorkers();
     if (isset($defaultSettings['job_prefix'])) {
         $this->jobPrefix = $defaultSettings['job_prefix'];
     }
 }
 /**
  * Executes the current command.
  *
  * @param InputInterface  $input  An InputInterface instance
  * @param OutputInterface $output An OutputInterface instance
  *
  * @return integer 0 if everything went fine, or an error code
  *
  * @throws \LogicException When this abstract class is not implemented
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     if (!$input->getOption('quiet')) {
         $kernelEnvironment = $this->kernel->getEnvironment();
         $output->writeln('Warming the cache for the ' . $kernelEnvironment . ' environment');
     }
     $this->gearmanCacheWrapper->warmup('');
 }