diff --git a/Console/Command/AllCommand.php b/Console/Command/AllCommand.php index 99b7ba3..5014721 100644 --- a/Console/Command/AllCommand.php +++ b/Console/Command/AllCommand.php @@ -16,7 +16,7 @@ class AllCommand extends CommandAbstract protected function configure() { parent::configure(); - + $this ->setName(self::COMMAND_NAMESPACE . 'all') ->setDescription('Bust All URLs.'); @@ -25,11 +25,12 @@ protected function configure() /** * @param InputInterface $input * @param OutputInterface $output - * @return null + * @return int */ protected function execute(InputInterface $input, OutputInterface $output) { $this->cacheBust->bustAll(); $output->writeln('All URLs cache busted successfully.'); + return 0; } } diff --git a/Console/Command/MediaCommand.php b/Console/Command/MediaCommand.php index 29c9fba..678718f 100644 --- a/Console/Command/MediaCommand.php +++ b/Console/Command/MediaCommand.php @@ -16,7 +16,7 @@ class MediaCommand extends CommandAbstract protected function configure() { parent::configure(); - + $this ->setName(self::COMMAND_NAMESPACE . 'media') ->setDescription('Bust Media URLs.'); @@ -25,11 +25,12 @@ protected function configure() /** * @param InputInterface $input * @param OutputInterface $output - * @return null + * @return int */ protected function execute(InputInterface $input, OutputInterface $output) { $this->cacheBust->bustMedia(); $output->writeln('Media URLs cache busted successfully.'); + return 0; } } diff --git a/Console/Command/StaticCommand.php b/Console/Command/StaticCommand.php index 2475136..bb000ee 100644 --- a/Console/Command/StaticCommand.php +++ b/Console/Command/StaticCommand.php @@ -16,7 +16,7 @@ class StaticCommand extends CommandAbstract protected function configure() { parent::configure(); - + $this ->setName(self::COMMAND_NAMESPACE . 'static') ->setDescription('Bust Static URLs.'); @@ -25,11 +25,12 @@ protected function configure() /** * @param InputInterface $input * @param OutputInterface $output - * @return null + * @return int */ protected function execute(InputInterface $input, OutputInterface $output) { $this->cacheBust->bustStatic(); $output->writeln('Static URLs cache busted successfully.'); + return 0; } } diff --git a/Update/UpdateFeed.php b/Update/UpdateFeed.php index 17d8969..6943feb 100644 --- a/Update/UpdateFeed.php +++ b/Update/UpdateFeed.php @@ -44,7 +44,7 @@ public function getFeedData() ); $curl->addOption(CURLOPT_FOLLOWLOCATION, true); - $curl->write(\Zend_Http_Client::GET, $this->getFeedUrl(), '1.0'); + $curl->write('GET', $this->getFeedUrl(), '1.0'); $data = $curl->read(); $curl->close(); diff --git a/composer.json b/composer.json index 3802959..cf0ed87 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,6 @@ "name": "absolute/magento2-cache-bust", "description": "Absolute Commerce Cache Bust extension for Magento 2", "type": "magento2-module", - "version": "3.1.2", "license": "proprietary", "autoload": { "files": [