@@ -159,28 +159,6 @@ public function remove(string $name, string $prefix = '')
159
159
return $ store ;
160
160
}
161
161
162
- /**
163
- * Dispatches all cookies in store.
164
- *
165
- * @deprecated Response should dispatch cookies.
166
- */
167
- public function dispatch (): void
168
- {
169
- foreach ($ this ->cookies as $ cookie ) {
170
- $ name = $ cookie ->getPrefixedName ();
171
- $ value = $ cookie ->getValue ();
172
- $ options = $ cookie ->getOptions ();
173
-
174
- if ($ cookie ->isRaw ()) {
175
- $ this ->setRawCookie ($ name , $ value , $ options );
176
- } else {
177
- $ this ->setCookie ($ name , $ value , $ options );
178
- }
179
- }
180
-
181
- $ this ->clear ();
182
- }
183
-
184
162
/**
185
163
* Returns all cookie instances in store.
186
164
*
@@ -232,28 +210,4 @@ protected function validateCookies(array $cookies): void
232
210
}
233
211
}
234
212
}
235
-
236
- /**
237
- * Extracted call to `setrawcookie()` in order to run unit tests on it.
238
- *
239
- * @codeCoverageIgnore
240
- *
241
- * @deprecated
242
- */
243
- protected function setRawCookie (string $ name , string $ value , array $ options ): void
244
- {
245
- setrawcookie ($ name , $ value , $ options );
246
- }
247
-
248
- /**
249
- * Extracted call to `setcookie()` in order to run unit tests on it.
250
- *
251
- * @codeCoverageIgnore
252
- *
253
- * @deprecated
254
- */
255
- protected function setCookie (string $ name , string $ value , array $ options ): void
256
- {
257
- setcookie ($ name , $ value , $ options );
258
- }
259
213
}
0 commit comments