Skip to content

Commit 3240654

Browse files
committed
tweak: default cookie sessions
1 parent 2444cbc commit 3240654

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

config.default.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ newline=\n
4040
handler=Gt\Session\FileHandler
4141
path=phpgt/session
4242
name=GT
43+
use_cookies=true
4344

4445
[database]
4546
driver=sqlite

src/Logic/LogicStreamHandler.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
namespace GT\WebEngine\Logic;
33

44
use Closure;
5+
use Gt\Routing\LogicStream\LogicStreamWrapper;
56

67
/**
78
* Handles the registration of a custom stream wrapper, as defined by the
@@ -12,8 +13,8 @@ class LogicStreamHandler {
1213
private Closure $streamWrapperRegisterCallback;
1314

1415
public function __construct(
15-
private readonly string $streamName = WebEngineLogicStreamWrapper::STREAM_NAME,
16-
private readonly string $logicStreamClassName = WebEngineLogicStreamWrapper::class,
16+
private readonly string $streamName = LogicStreamWrapper::STREAM_NAME,
17+
private readonly string $logicStreamClassName = LogicStreamWrapper::class,
1718
?Closure $streamWrapperRegisterCallback = null,
1819
) {
1920
$this->streamWrapperRegisterCallback = $streamWrapperRegisterCallback ??

0 commit comments

Comments
 (0)