downloader = $downloader; $this->sharedStorage = $storage; parent::__construct(); } protected function configure() { $this->setName(self::NAME)->setDescription('Generate onboard package'); $this->configureOptions();; } /** * @param InputInterface $input * @param OutputInterface $output * @throws Exception */ protected function execute(InputInterface $input, OutputInterface $output) { $functionArgs = $this->getFunctionArgs($input); if ($this->downloader->isRemoteImageMissing(...$functionArgs)) { $this->downloader->downloadImageToRemote(...$functionArgs); } $this->downloader->uncompressImage(...$functionArgs); } }