function SharedTempStoreFactory::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/user/src/SharedTempStoreFactory.php \Drupal\user\SharedTempStoreFactory::__construct()
Constructs a Drupal\user\SharedTempStoreFactory object.
Parameters
\Drupal\Core\Database\Connection $connection: The connection object used for this data.
\Drupal\Core\Lock\LockBackendInterface $lockBackend: The lock object used for this data.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
int $expire: The time to live for items, in seconds.
File
- core/
modules/ user/ src/ SharedTempStoreFactory.php, line 59 - Contains \Drupal\user\SharedTempStoreFactory.
Class
- SharedTempStoreFactory
- Creates a shared temporary storage for a collection.
Namespace
Drupal\userCode
function __construct(KeyValueExpirableFactoryInterface $storage_factory, LockBackendInterface $lockBackend, RequestStack $request_stack, $expire = 604800) {
$this->storageFactory = $storage_factory;
$this->lockBackend = $lockBackend;
$this->requestStack = $request_stack;
$this->expire = $expire;
}