X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fctools%2Fsrc%2FSerializableTempstoreFactory.php;fp=web%2Fmodules%2Fcontrib%2Fctools%2Fsrc%2FSerializableTempstoreFactory.php;h=51cf02b460dd5f018f94c18ab44a9eaa02c6394a;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/modules/contrib/ctools/src/SerializableTempstoreFactory.php b/web/modules/contrib/ctools/src/SerializableTempstoreFactory.php new file mode 100644 index 000000000..51cf02b46 --- /dev/null +++ b/web/modules/contrib/ctools/src/SerializableTempstoreFactory.php @@ -0,0 +1,27 @@ +id() ?: session_id(); + } + + // Store the data for this collection in the database. + $storage = $this->storageFactory->get("user.shared_tempstore.$collection"); + return new SerializableTempstore($storage, $this->lockBackend, $owner, $this->requestStack, $this->expire); + } + +}