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