mirror of
https://github.com/Intervention/image.git
synced 2025-08-29 00:29:55 +02:00
moved cachekey to intervention/imagecache
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user