Skip to content

Commit 52780ed

Browse files
committed
Support loaded cookies
1 parent 40c6b95 commit 52780ed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Cookie/ContextCookie.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ abstract class ContextCookie implements ContextAware, WithContext
1111
use ContextAwareTrait;
1212
use WithContextTrait;
1313

14+
public static function loaded(ContextAware $ctx, bool $checkQueued = true)
15+
{
16+
return static::withContext($ctx)->read($checkQueued);
17+
}
18+
1419
/**
1520
* @var string|null
1621
*/

0 commit comments

Comments
 (0)