You are here

public function BootSubscriber::__construct in Bakery Single Sign-On System 8.2

Initialize bakeryService.

Parameters

\Drupal\bakery\BakeryService $bakeryService: Bakery service used.

\Drupal\bakery\Kitchen $kitchen: Bakery kitchen service.

\Drupal\Core\Session\AccountProxyInterface $currentUser: The current user.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Type manager for retrieving user storage.

File

src/EventSubscriber/BootSubscriber.php, line 69
For Boot event subscribe.

Class

BootSubscriber
For handling chocolatechip cookie on boot.

Namespace

Drupal\bakery\EventSubscriber

Code

public function __construct(BakeryService $bakeryService, Kitchen $kitchen, AccountProxyInterface $currentUser, EntityTypeManagerInterface $entityTypeManager) {
  $this->bakeryService = $bakeryService;
  $this->kitchen = $kitchen;
  $this->currentUser = $currentUser;
  $this->userStorage = $entityTypeManager
    ->getStorage('user');
}