You are here

public function SessionHandlerProxy::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Session/Storage/Proxy/SessionHandlerProxy.php \Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy::__construct()

Constructor.

Parameters

\SessionHandlerInterface $handler:

File

vendor/symfony/http-foundation/Session/Storage/Proxy/SessionHandlerProxy.php, line 31

Class

SessionHandlerProxy
SessionHandler proxy.

Namespace

Symfony\Component\HttpFoundation\Session\Storage\Proxy

Code

public function __construct(\SessionHandlerInterface $handler) {
  $this->handler = $handler;
  $this->wrapper = $handler instanceof \SessionHandler;
  $this->saveHandlerName = $this->wrapper ? ini_get('session.save_handler') : 'user';
}