Skip to content

Commit 8aa1fdb

Browse files
committed
refactor: Remove deprecated methods in CookieStore
1 parent 47d7559 commit 8aa1fdb

File tree

1 file changed

+0
-46
lines changed

1 file changed

+0
-46
lines changed

system/Cookie/CookieStore.php

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -159,28 +159,6 @@ public function remove(string $name, string $prefix = '')
159159
return $store;
160160
}
161161

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-
184162
/**
185163
* Returns all cookie instances in store.
186164
*
@@ -232,28 +210,4 @@ protected function validateCookies(array $cookies): void
232210
}
233211
}
234212
}
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-
}
259213
}

0 commit comments

Comments
 (0)