diff --git a/code/Helper/ImageThumbnailHelper.php b/code/Helper/ImageThumbnailHelper.php index 0242d79d2..e9c22ff32 100644 --- a/code/Helper/ImageThumbnailHelper.php +++ b/code/Helper/ImageThumbnailHelper.php @@ -3,10 +3,7 @@ use SilverStripe\AssetAdmin\Controller\AssetAdmin; use SilverStripe\Assets\File; -use SilverStripe\Assets\ImageBackendFactory; use SilverStripe\Core\Injector\Injectable; -use SilverStripe\Core\Injector\InjectionCreator; -use SilverStripe\Core\Injector\Injector; class ImageThumbnailHelper { @@ -15,11 +12,6 @@ class ImageThumbnailHelper public function run() { $assetAdmin = AssetAdmin::singleton(); - $creator = new InjectionCreator(); - Injector::inst()->registerService( - $creator, - ImageBackendFactory::class - ); $files = File::get(); set_time_limit(0);