public function EditionsController::__construct in Simplenews Scheduler 8
Same name and namespace in other branches
- 2.0.x src/Controller/EditionsController.php \Drupal\simplenews_scheduler\Controller\EditionsController::__construct()
Creates the EditionsController object.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.
\Drupal\Core\Session\AccountProxyInterface $current_user: The current user.
\Drupal\Core\Database\Connection $database: The database connection.
File
- src/
Controller/ EditionsController.php, line 52 - Contains \Drupal\simplenews_scheduler\Controller\EditionsController.
Class
- EditionsController
- Default controller for the simplenews_scheduler module.
Namespace
Drupal\simplenews_scheduler\ControllerCode
public function __construct(EntityManagerInterface $entity_manager, AccountProxyInterface $current_user, Connection $database) {
$this->entityManager = $entity_manager;
$this->currentUser = $current_user;
$this->database = $database;
}