SharedTempStoreFactory::__construct(KeyValueExpirableFactoryInterface $storage_factory, LockBackendInterface $lock_backend, RequestStack $request_stack, $expire = 604800)
Constructs a Drupal\user\SharedTempStoreFactory object.
Parameters
\Drupal\Core\KeyValueStore\KeyValueExpirableFactoryInterface $storage_factory: The key/value store factory.
\Drupal\Core\Lock\LockBackendInterface $lock_backend: 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 54
Class
- SharedTempStoreFactory
- Creates a shared temporary storage for a collection.
Namespace
Drupal\user
Code
function __construct(KeyValueExpirableFactoryInterface $storage_factory, LockBackendInterface $lock_backend, RequestStack $request_stack, $expire = 604800) { $this->storageFactory = $storage_factory; $this->lockBackend = $lock_backend; $this->requestStack = $request_stack; $this->expire = $expire; }
Please login to continue.