public function doRun(InputInterface $input, OutputInterface $output) { $input->bind($this->getDefinition()); $options = $input->getOptions(); $this->setConfigurationOverride($options['config']); $this->setCatchExceptions(true); $imageFinder = new Image\Finder($this); $image = Image\Image::createFromConfig($this->getConfiguration()); $this->get('install:assets')->inject($imageFinder); $this->get('refresh:thumbnails')->inject($image, $imageFinder); $this->get('refresh:covers')->inject($image, $imageFinder); $this->get('refresh:json')->inject($imageFinder); return parent::doRun($input, $output); }