Skip to content

Commit

Permalink
MINOR Remove ImageBackendFactory Injector override from ImageThumbnai…
Browse files Browse the repository at this point in the history
…lHelper
  • Loading branch information
Maxime Rainville committed Jan 29, 2019
1 parent 64feb50 commit 99ff45a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions code/Helper/ImageThumbnailHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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);
Expand Down

0 comments on commit 99ff45a

Please sign in to comment.