Finalizing MVP for image cache plugin. Closes #27.

This commit is contained in:
Jason Williams
2021-01-02 18:31:29 -07:00
parent 0f302ec5ba
commit 710abf1237
4 changed files with 56 additions and 3 deletions

View File

@@ -5,6 +5,7 @@
*/
use System\Classes\PluginBase;
use JasonWilliams\ImgCache\Classes\Image;
class Plugin extends PluginBase
{
@@ -24,7 +25,8 @@ class Plugin extends PluginBase
return [
'filters' => [
'imgcache' => function($imgurl) {
return $imgurl;
$image = new Image($imgurl);
return $image;
}
]
];