You are here

public function PhotosAlbumController::__construct in Album Photos 8.4

Same name and namespace in other branches
  1. 8.5 src/Controller/PhotosAlbumController.php \Drupal\photos\Controller\PhotosAlbumController::__construct()
  2. 6.0.x 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\Image\ImageFactory $image_factory: The image factory.

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

\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 85

Class

PhotosAlbumController
Album view controller.

Namespace

Drupal\photos\Controller

Code

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