Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Commit

Permalink
Fix some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Oct 1, 2019
1 parent 7c60fa9 commit e61a2a6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Commands/GenerateWebpImages.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected function configure()
for specific folders only and with excluded folders')
->addOption('stack', 's', InputOption::VALUE_OPTIONAL, 'process amount per iteration')
->addOption('offset', 'o', InputOption::VALUE_OPTIONAL, 'process amount per iteration', 0)
->addOption('force', 'f', InputOption::VALUE_NONE, 'forces recreation', false)
->addOption('force', 'f', InputOption::VALUE_OPTIONAL, 'forces recreation', false)
->addOption('setCollection', 'c', InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
'only generates medias for specified collection. Example: `frosh:webp:generate -c 12`')
->addOption('ignoreCollection', 'i', InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, 'ignores specified collection');
Expand Down
2 changes: 1 addition & 1 deletion Commands/WebPStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$io = new SymfonyStyle($input, $output);

/** @var WebpEncoderFactory $encoderFactory */
$encoderFactory = $this->container->get('frosh_webp.services.webp_encoder_factory');
$encoderFactory = $this->container->get(WebpEncoderFactory::class);
$runnableEncoders = WebpEncoderFactory::onlyRunnable($encoderFactory->getEncoders());
if (empty($runnableEncoders)) {
$io->error('Webp is not available');
Expand Down
15 changes: 12 additions & 3 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
xsi:noNamespaceSchemaLocation="../../../engine/Shopware/Components/Plugin/schema/plugin.xsd">
<label lang="de">Webp Unterstützung</label>
<label lang="en">Webp Support</label>
<version>1.0.4</version>
<version>1.1.0</version>
<copyright>Friends of Shopware</copyright>
<license>MIT</license>
<link>https://friendsofshopware.github.io/</link>
<author>Friends of Shopware</author>
<compatibility minVersion="5.4.0"/>
<compatibility minVersion="5.6.0"/>

<description lang="en">Webp Support for Shopware</description>
<description lang="de">Webp Support für Shopware</description>
Expand Down Expand Up @@ -67,4 +67,13 @@
- Javascript Code optimiert, Danke an @KaiSoellch
</changes>
</changelog>
</plugin>

<changelog version="1.1.0">
<changes lang="en">
Shopware 5.6 Compability
</changes>
<changes lang="de">
Shopware 5.6 Kompatiblität
</changes>
</changelog>
</plugin>

0 comments on commit e61a2a6

Please sign in to comment.