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

Breadcrumb

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

class SessionFactory

@author Jérémy Derussé <jeremy@derusse.com>

Hierarchy

  • class \Symfony\Component\HttpFoundation\Session\SessionFactory implements \Symfony\Component\HttpFoundation\Session\SessionFactoryInterface

Expanded class hierarchy of SessionFactory

File

vendor/symfony/http-foundation/Session/SessionFactory.php, line 23

Namespace

Symfony\Component\HttpFoundation\Session
View source
class SessionFactory implements SessionFactoryInterface {
    private ?\Closure $usageReporter;
    public function __construct(RequestStack $requestStack, SessionStorageFactoryInterface $storageFactory, ?callable $usageReporter = null) {
        $this->usageReporter = null === $usageReporter ? null : $usageReporter(...);
    }
    public function createSession() : SessionInterface {
        return new Session($this->storageFactory
            ->createStorage($this->requestStack
            ->getMainRequest()), null, null, $this->usageReporter);
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
SessionFactory::$usageReporter private property
SessionFactory::createSession public function Overrides SessionFactoryInterface::createSession
SessionFactory::__construct public function

API Navigation

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