@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | { |
27 | 27 | public function __construct( |
28 | 28 | private readonly BinderInterface $binder, |
29 | - ) { |
|
29 | + ){ |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | public function defineBindings(): array |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | 'handler' => new Autowire( |
72 | 72 | FileHandler::class, |
73 | 73 | [ |
74 | - 'directory' => $directories->get('runtime') . 'session', |
|
74 | + 'directory' => $directories->get('runtime').'session', |
|
75 | 75 | 'lifetime' => 86400, |
76 | 76 | ] |
77 | 77 | ), |
@@ -90,14 +90,14 @@ discard block |
||
90 | 90 | |
91 | 91 | private function resolveSession(ContainerInterface $container): SessionInterface |
92 | 92 | { |
93 | - try { |
|
93 | + try{ |
|
94 | 94 | /** @var ServerRequestInterface $request */ |
95 | 95 | $request = $container->get(ServerRequestInterface::class); |
96 | 96 | return $request->getAttribute(SessionMiddleware::ATTRIBUTE) ?? throw new ContextualObjectNotFoundException( |
97 | 97 | SessionInterface::class, |
98 | 98 | SessionMiddleware::ATTRIBUTE, |
99 | 99 | ); |
100 | - } catch (InvalidRequestScopeException $e) { |
|
100 | + }catch (InvalidRequestScopeException $e){ |
|
101 | 101 | throw new InvalidRequestScopeException(SessionInterface::class, previous: $e); |
102 | 102 | } |
103 | 103 | } |
@@ -6,7 +6,7 @@ |
||
6 | 6 | |
7 | 7 | final class UserContext |
8 | 8 | { |
9 | - private function __construct() {} |
|
9 | + private function __construct(){} |
|
10 | 10 | |
11 | 11 | public static function create(): self |
12 | 12 | { |
@@ -6,7 +6,9 @@ |
||
6 | 6 | |
7 | 7 | final class UserContext |
8 | 8 | { |
9 | - private function __construct() {} |
|
9 | + private function __construct() |
|
10 | + { |
|
11 | +} |
|
10 | 12 | |
11 | 13 | public static function create(): self |
12 | 14 | { |
@@ -8,7 +8,7 @@ |
||
8 | 8 | { |
9 | 9 | public function __construct( |
10 | 10 | private readonly UserContext $scope, |
11 | - ) {} |
|
11 | + ){} |
|
12 | 12 | |
13 | 13 | public function scope(): string |
14 | 14 | { |
@@ -8,7 +8,8 @@ |
||
8 | 8 | { |
9 | 9 | public function __construct( |
10 | 10 | private readonly UserContext $scope, |
11 | - ) {} |
|
11 | + ) { |
|
12 | +} |
|
12 | 13 | |
13 | 14 | public function scope(): string |
14 | 15 | { |