Symfony\Component\HttpFoundation\Session::__construct PHP Method

__construct() public method

Constructor.
public __construct ( Symfony\Component\HttpFoundation\SessionStorage\SessionStorageInterface $storage, string $defaultLocale = 'en' )
$storage Symfony\Component\HttpFoundation\SessionStorage\SessionStorageInterface A SessionStorageInterface instance
$defaultLocale string The default locale
    public function __construct(SessionStorageInterface $storage, $defaultLocale = 'en')
    {
        $this->storage = $storage;
        $this->defaultLocale = $defaultLocale;
        $this->locale = $defaultLocale;
        $this->flashes = array();
        $this->oldFlashes = array();
        $this->attributes = array();
        $this->setPhpDefaultLocale($this->defaultLocale);
        $this->started = false;
    }