public function CookieMonster::__construct in Bakery Single Sign-On System 8.2
File
- src/
EventSubscriber/ CookieMonster.php, line 63
Class
- CookieMonster
- C is for cookie, its good enough for me.
Namespace
Drupal\bakery\EventSubscriberCode
public function __construct(TimeInterface $time, ConfigFactoryInterface $config_factory, ParameterBag $cookie_jar) {
$this->time = $time;
$this->config = $config_factory
->get('bakery.settings');
$this->cookieJar = $cookie_jar;
$this->domain = $this->config
->get('bakery_domain');
$this->freshness = (int) $this->config
->get('bakery_freshness');
$this->secure = !empty(ini_get('session.cookie_secure'));
}