1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-10 23:24:04 +02:00

Flextype Core: Glide/Intervention Image Implementation #61

This commit is contained in:
Awilum
2019-01-04 12:10:19 +03:00
parent b5717702a1
commit df5cc1e2a1

View File

@@ -121,13 +121,14 @@ class Images
* Get image
*
* Images::get('page-name/image.jpg', [w => '200']);
* http://glide.thephpleague.com/1.0/api/quick-reference/
*
* @access public
* @param string $path Image path
* @param array $params Image params
* @return string Returns the image url
*/
public static function get($path, $params)
public static function get($path, array $params)
{
return Http::getBaseUrl().'/site/cache/glide/'.Images::$server->makeImage($path, $params);
}