You are here

public function PhotosAlbumController::__construct in Album Photos 6.0.x

Same name and namespace in other branches
  1. 8.5 src/Controller/PhotosAlbumController.php \Drupal\photos\Controller\PhotosAlbumController::__construct()
  2. 8.4 src/Controller/PhotosAlbumController.php \Drupal\photos\Controller\PhotosAlbumController::__construct()

Constructor.

Parameters

\Drupal\Core\Database\Connection $connection: The database connection.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: The entity manager service.

\Drupal\Core\Image\ImageFactory $image_factory: The image factory.

\Drupal\Core\Asset\LibraryDiscoveryInterface $library_discovery: The library discovery service.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The current request stack.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

File

src/Controller/PhotosAlbumController.php, line 107

Class

PhotosAlbumController
Album view controller.

Namespace

Drupal\photos\Controller

Code

public function __construct(Connection $connection, DateFormatterInterface $date_formatter, EntityTypeManagerInterface $entity_manager, ImageFactory $image_factory, LibraryDiscoveryInterface $library_discovery, RendererInterface $renderer, RequestStack $request_stack, RouteMatchInterface $route_match) {
  $this->connection = $connection;
  $this->dateFormatter = $date_formatter;
  $this->entityTypeManager = $entity_manager;
  $this->imageFactory = $image_factory;
  $this->libraryDiscovery = $library_discovery;
  $this->renderer = $renderer;
  $this->requestStack = $request_stack;
  $this->routeMatch = $route_match;
}