You are here

public function FocalPointPreviewController::__construct in Focal Point 8

Parameters

\Drupal\Core\Image\ImageFactory $image_factory: The image_factory parameter.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request parameter.

File

src/Controller/FocalPointPreviewController.php, line 56

Class

FocalPointPreviewController
Class FocalPointPreviewController.

Namespace

Drupal\focal_point\Controller

Code

public function __construct(ImageFactory $image_factory, RequestStack $request_stack) {
  $this->imageFactory = $image_factory;
  $this->request = $request_stack
    ->getCurrentRequest();
  $this->fileStorage = $this
    ->entityTypeManager()
    ->getStorage('file');
}