diff --git a/core/modules/user/src/TempStore.php b/core/modules/user/src/TempStore.php index 48aee67..da87691 100644 --- a/core/modules/user/src/TempStore.php +++ b/core/modules/user/src/TempStore.php @@ -79,8 +79,10 @@ class TempStore { * The lock object used for this data. * @param mixed $owner * The owner key to store along with the data (e.g. a user or session ID). + * @param int $expire + * The time to live for items, in seconds. */ - public function __construct(KeyValueStoreExpirableInterface $storage, LockBackendInterface $lockBackend, $owner, $expire) { + public function __construct(KeyValueStoreExpirableInterface $storage, LockBackendInterface $lockBackend, $owner, $expire = 604800) { $this->storage = $storage; $this->lockBackend = $lockBackend; $this->owner = $owner; diff --git a/core/modules/user/src/TempStoreFactory.php b/core/modules/user/src/TempStoreFactory.php index f1da221..70a9289 100644 --- a/core/modules/user/src/TempStoreFactory.php +++ b/core/modules/user/src/TempStoreFactory.php @@ -55,7 +55,7 @@ class TempStoreFactory { * @param \Drupal\Core\Lock\LockBackendInterface $lockBackend * The lock object used for this data. * @param int $expire - * The + * The time to live for items, in seconds. */ function __construct(SerializationInterface $serializer, Connection $connection, LockBackendInterface $lockBackend, $expire = 604800) { $this->serializer = $serializer;