From b627594ed9c622bec58ad223bdcb527a2f840471 Mon Sep 17 00:00:00 2001 From: Maxime Rainville Date: Mon, 21 Jan 2019 17:56:14 +1300 Subject: [PATCH] MINOR Remove ImageBackendFactory Injector override from ImageThumbnailHelper --- code/Helper/ImageThumbnailHelper.php | 8 -------- 1 file changed, 8 deletions(-) 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);