From 025f0f777f8fc138aed9674d3183b0bda36b8554 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Fri, 10 Jan 2014 15:55:54 +0100 Subject: [PATCH] moved cachekey to intervention/imagecache --- src/Intervention/Image/Image.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/Intervention/Image/Image.php b/src/Intervention/Image/Image.php index ee6c11f7..64ac46d6 100644 --- a/src/Intervention/Image/Image.php +++ b/src/Intervention/Image/Image.php @@ -76,13 +76,6 @@ class Image */ protected $original; - /** - * Identifier key for cached images - * - * @var string - */ - public $cachekey = null; - /** * Result of image after encoding * @@ -182,10 +175,10 @@ class Image } // Create image and run callback - $image = new \Intervention\Image\ImageCache; - $image = is_callable($callback) ? $callback($image) : $image; + $imagecache = new \Intervention\Image\ImageCache; + $imagecache = is_callable($callback) ? $callback($imagecache) : $imagecache; - return $image->get($lifetime, $returnObj); + return $imagecache->get($lifetime, $returnObj); } /**