Skip to content

Commit cb6fdb1

Browse files
committed
[HttpFoundation] removed Session::close()
1 parent c59d880 commit cb6fdb1

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

CHANGELOG-2.1.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ To get the diff between two versions, go to https://github.com/symfony/symfony/c
230230
This makes the implementation ESI compatible.
231231
* Added `AutoExpireFlashBag` (default) to replicate Symfony 2.0.x auto expire behaviour of messages auto expiring
232232
after one page page load. Messages must be retrived by `get()` or `all()`.
233-
* Deprecated the following methods from the Session class: `close()`, `setFlash()`, `setFlashes()`
233+
* [BC BREAK] Removed the `close()` method from the Session class
234+
* Deprecated the following methods from the Session class: `setFlash()`, `setFlashes()`
234235
`getFlash()`, `hasFlash()`, and `removeFlash()`. Use `getFlashBag() instead which returns a `FlashBagInterface`.
235236
* `Session->clear()` now only clears session attributes as before it cleared flash messages and
236237
attributes. `Session->getFlashBag()->all()` clears flashes now.

src/Symfony/Component/HttpFoundation/Session/Session.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -315,13 +315,4 @@ public function clearFlashes()
315315
{
316316
return $this->getBag('flashes')->clear();
317317
}
318-
319-
/**
320-
* This method does not do anything.
321-
*
322-
* @deprecated since 2.1, will be removed from 2.3
323-
*/
324-
public function close()
325-
{
326-
}
327318
}

0 commit comments

Comments
 (0)