You are here

public function DownloadCountController::__construct in Download Count 8

DownloadCountController constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config Factory.

\Drupal\Core\Session\AccountInterface $current_user: Current User.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: Date Formatter.

\Drupal\Core\Queue\QueueFactory $queue: Queue Manager.

File

src/Controller/DownloadCountController.php, line 63

Class

DownloadCountController
Returns responses for download_count module routes.

Namespace

Drupal\download_count\Controller

Code

public function __construct(ConfigFactoryInterface $config_factory, AccountInterface $current_user, DateFormatterInterface $date_formatter, QueueFactory $queue) {
  $this->configFactory = $config_factory;
  $this->currentUser = $current_user;
  $this->dateFormatter = $date_formatter;
  $this->queue = $queue
    ->get('download_count');
}