FIX Create Image_Cached with Injector.

This commit is contained in:
Gregory Smirnov 2017-04-24 21:53:20 +02:00
parent 22cdf4c786
commit 1d36f354e8

View File

@ -727,7 +727,7 @@ class Image extends File implements Flushable {
call_user_func_array(array($this, "generateFormattedImage"), $args); call_user_func_array(array($this, "generateFormattedImage"), $args);
} }
$cached = new Image_Cached($cacheFile, false, $this); $cached = Injector::inst()->createWithArgs('Image_Cached', array($cacheFile, false, $this));
return $cached; return $cached;
} }
} }