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); } /**