Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MockArraySessionStorage.php

function MockArraySessionStorage::start

Overrides SessionStorageInterface::start

2 calls to MockArraySessionStorage::start()
MockArraySessionStorage::getBag in vendor/symfony/http-foundation/Session/Storage/MockArraySessionStorage.php
Gets a SessionBagInterface by name.
MockArraySessionStorage::regenerate in vendor/symfony/http-foundation/Session/Storage/MockArraySessionStorage.php
Regenerates id that represents this storage.
1 method overrides MockArraySessionStorage::start()
MockFileSessionStorage::start in vendor/symfony/http-foundation/Session/Storage/MockFileSessionStorage.php
Starts the session.

File

vendor/symfony/http-foundation/Session/Storage/MockArraySessionStorage.php, line 53

Class

MockArraySessionStorage
MockArraySessionStorage mocks the session for unit tests.

Namespace

Symfony\Component\HttpFoundation\Session\Storage

Code

public function start() : bool {
    if ($this->started) {
        return true;
    }
    if (!$this->id) {
        $this->id = $this->generateId();
    }
    $this->loadSession();
    return true;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal