@@ 113-123 (lines=11) @@ | ||
110 | /** |
|
111 | * @return Session |
|
112 | */ |
|
113 | public function session(): Session |
|
114 | { |
|
115 | return Bind::once(__METHOD__, function () { |
|
116 | ||
117 | $content = $this->config()->get('content'); |
|
118 | $slice = $content->getSlice('session'); |
|
119 | ||
120 | return new Session($slice->getData('password')); |
|
121 | ||
122 | }); |
|
123 | } |
|
124 | ||
125 | /** |
|
126 | * @return Cookies |
|
@@ 128-138 (lines=11) @@ | ||
125 | /** |
|
126 | * @return Cookies |
|
127 | */ |
|
128 | public function cookies(): Cookies |
|
129 | { |
|
130 | return Bind::once(__METHOD__, function () { |
|
131 | ||
132 | $content = $this->config()->get('content'); |
|
133 | $slice = $content->getSlice('cookies'); |
|
134 | ||
135 | return new Cookies($slice->getData('password')); |
|
136 | ||
137 | }); |
|
138 | } |
|
139 | ||
140 | /** |
|
141 | * @return Factory |