mirror of
https://github.com/Intervention/image.git
synced 2025-08-29 16:50:07 +02:00
moved cachekey to intervention/imagecache
This commit is contained in:
@@ -76,13 +76,6 @@ class Image
|
|||||||
*/
|
*/
|
||||||
protected $original;
|
protected $original;
|
||||||
|
|
||||||
/**
|
|
||||||
* Identifier key for cached images
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
public $cachekey = null;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Result of image after encoding
|
* Result of image after encoding
|
||||||
*
|
*
|
||||||
@@ -182,10 +175,10 @@ class Image
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create image and run callback
|
// Create image and run callback
|
||||||
$image = new \Intervention\Image\ImageCache;
|
$imagecache = new \Intervention\Image\ImageCache;
|
||||||
$image = is_callable($callback) ? $callback($image) : $image;
|
$imagecache = is_callable($callback) ? $callback($imagecache) : $imagecache;
|
||||||
|
|
||||||
return $image->get($lifetime, $returnObj);
|
return $imagecache->get($lifetime, $returnObj);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user