generated from Nodarx/template
feat: add CachedService with cached collections and delta
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -55,6 +55,16 @@ class LiveService extends ServiceBase
|
||||
{
|
||||
private LiveMailService $mailService;
|
||||
|
||||
/**
|
||||
* @param LiveMailService|null $mailService share an existing IMAP connection (e.g. CachedService); created on demand otherwise
|
||||
*/
|
||||
public function __construct(?LiveMailService $mailService = null)
|
||||
{
|
||||
if ($mailService !== null) {
|
||||
$this->mailService = $mailService;
|
||||
}
|
||||
}
|
||||
|
||||
public function collectionList(string|int|null $location, ?IFilter $filter = null, ?ISort $sort = null): array
|
||||
{
|
||||
$this->initialize();
|
||||
|
||||
Reference in New Issue
Block a user