You are here

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

When the service is created, set a value for the example variable.

File

src/BakeryUserHooks.php, line 34

Class

BakeryUserHooks

Namespace

Drupal\bakery

Code

public function __construct(Kitchen $kitchen, ConfigFactoryInterface $config_factory, AccountProxy $current_user) {
  $this->kitchen = $kitchen;
  $this->config = $config_factory
    ->get('bakery.settings');
  $this->currentUser = $current_user;
}