Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.

Commit

Permalink
Update ProviderCacher.php
Browse files Browse the repository at this point in the history
fixed error  Undefined property: KevBaldwyn\Image\Cache\ProviderCacher::$publicPath  in KevBaldwyn/Image/Cache/ProviderCacher.php:22
  • Loading branch information
ddjikic committed Nov 27, 2014
1 parent d875457 commit 701f6b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/KevBaldwyn/Image/Cache/ProviderCacher.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class ProviderCacher implements CacherInterface {
protected $imgPath;
protected $operations;
protected $cacheLifetime;
protected $publicPath;


public function __construct(ProviderInterface $provider)
Expand All @@ -28,6 +29,8 @@ public function init($imgPath, $operations, $cacheLifetime, $publicPath)
$this->imgPath = $imgPath;
$this->operations = $operations;
$this->cacheLifetime = $cacheLifetime;
$this->publicPath = $publicPath;

}


Expand Down Expand Up @@ -55,4 +58,4 @@ public function put($cacheData)
$this->provider->putToCache($this->checksum, $cacheData, $this->cacheLifetime);
}

}
}

0 comments on commit 701f6b5

Please sign in to comment.