From 701f6b5aba5292d542ed7878cd0b5bf2c05daaed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20=C4=90iki=C4=87?= Date: Thu, 27 Nov 2014 01:04:21 +0100 Subject: [PATCH] Update ProviderCacher.php fixed error Undefined property: KevBaldwyn\Image\Cache\ProviderCacher::$publicPath in KevBaldwyn/Image/Cache/ProviderCacher.php:22 --- src/KevBaldwyn/Image/Cache/ProviderCacher.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/KevBaldwyn/Image/Cache/ProviderCacher.php b/src/KevBaldwyn/Image/Cache/ProviderCacher.php index 82a14e3..f06cc12 100644 --- a/src/KevBaldwyn/Image/Cache/ProviderCacher.php +++ b/src/KevBaldwyn/Image/Cache/ProviderCacher.php @@ -9,6 +9,7 @@ class ProviderCacher implements CacherInterface { protected $imgPath; protected $operations; protected $cacheLifetime; + protected $publicPath; public function __construct(ProviderInterface $provider) @@ -28,6 +29,8 @@ public function init($imgPath, $operations, $cacheLifetime, $publicPath) $this->imgPath = $imgPath; $this->operations = $operations; $this->cacheLifetime = $cacheLifetime; + $this->publicPath = $publicPath; + } @@ -55,4 +58,4 @@ public function put($cacheData) $this->provider->putToCache($this->checksum, $cacheData, $this->cacheLifetime); } -} \ No newline at end of file +}