Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[PATCH] Shopware - Fix absolute paths to MediaOptimizers
diff --git a/engine/Shopware/Bundle/MediaBundle/Optimizer/GuetzliOptimizer.php b/engine/Shopware/Bundle/MediaBundle/Optimizer/GuetzliOptimizer.php
index c5ac2fef2b..0f01712841 100644
--- a/engine/Shopware/Bundle/MediaBundle/Optimizer/GuetzliOptimizer.php
+++ b/engine/Shopware/Bundle/MediaBundle/Optimizer/GuetzliOptimizer.php
@@ -31,7 +31,7 @@ class GuetzliOptimizer extends BinaryOptimizer
*/
public function getCommand()
{
- return 'guetzli';
+ return '/usr/bin/guetzli';
}
/**
diff --git a/engine/Shopware/Bundle/MediaBundle/Optimizer/JpegoptimOptimizer.php b/engine/Shopware/Bundle/MediaBundle/Optimizer/JpegoptimOptimizer.php
index ede9927f1d..5c1ca2aeae 100644
--- a/engine/Shopware/Bundle/MediaBundle/Optimizer/JpegoptimOptimizer.php
+++ b/engine/Shopware/Bundle/MediaBundle/Optimizer/JpegoptimOptimizer.php
@@ -31,7 +31,7 @@ class JpegoptimOptimizer extends BinaryOptimizer
*/
public function getCommand()
{
- return 'jpegoptim';
+ return '/usr/bin/jpegoptim';
}
/**
diff --git a/engine/Shopware/Bundle/MediaBundle/Optimizer/JpegtranOptimizer.php b/engine/Shopware/Bundle/MediaBundle/Optimizer/JpegtranOptimizer.php
index 40b07f75cd..e7594d1a17 100644
--- a/engine/Shopware/Bundle/MediaBundle/Optimizer/JpegtranOptimizer.php
+++ b/engine/Shopware/Bundle/MediaBundle/Optimizer/JpegtranOptimizer.php
@@ -31,7 +31,7 @@ class JpegtranOptimizer extends BinaryOptimizer
*/
public function getCommand()
{
- return 'jpegtran';
+ return '/usr/bin/jpegtran';
}
/**
diff --git a/engine/Shopware/Bundle/MediaBundle/Optimizer/OptipngOptimizer.php b/engine/Shopware/Bundle/MediaBundle/Optimizer/OptipngOptimizer.php
index e80cddd671..87599095a3 100644
--- a/engine/Shopware/Bundle/MediaBundle/Optimizer/OptipngOptimizer.php
+++ b/engine/Shopware/Bundle/MediaBundle/Optimizer/OptipngOptimizer.php
@@ -31,7 +31,7 @@ class OptipngOptimizer extends BinaryOptimizer
*/
public function getCommand()
{
- return 'optipng';
+ return '/usr/bin/optipng';
}
/**
diff --git a/engine/Shopware/Bundle/MediaBundle/Optimizer/PngcrushOptimizer.php b/engine/Shopware/Bundle/MediaBundle/Optimizer/PngcrushOptimizer.php
index 845171fa17..2066f16154 100644
--- a/engine/Shopware/Bundle/MediaBundle/Optimizer/PngcrushOptimizer.php
+++ b/engine/Shopware/Bundle/MediaBundle/Optimizer/PngcrushOptimizer.php
@@ -31,7 +31,7 @@ class PngcrushOptimizer extends BinaryOptimizer
*/
public function getCommand()
{
- return 'pngcrush';
+ return '/usr/bin/pngcrush';
}
/**
diff --git a/engine/Shopware/Bundle/MediaBundle/Optimizer/PngoutOptimizer.php b/engine/Shopware/Bundle/MediaBundle/Optimizer/PngoutOptimizer.php
index 66ad120249..d405acc76f 100644
--- a/engine/Shopware/Bundle/MediaBundle/Optimizer/PngoutOptimizer.php
+++ b/engine/Shopware/Bundle/MediaBundle/Optimizer/PngoutOptimizer.php
@@ -31,7 +31,7 @@ class PngoutOptimizer extends BinaryOptimizer
*/
public function getCommand()
{
- return 'pngout';
+ return '/usr/bin/pngout';
}
/**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment