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\SessionView 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 |