diff --git a/CHANGELOG-2.1.md b/CHANGELOG-2.1.md index b6e0e7c55a..02ff0a5301 100644 --- a/CHANGELOG-2.1.md +++ b/CHANGELOG-2.1.md @@ -230,7 +230,8 @@ To get the diff between two versions, go to https://github.com/symfony/symfony/c This makes the implementation ESI compatible. * Added `AutoExpireFlashBag` (default) to replicate Symfony 2.0.x auto expire behaviour of messages auto expiring after one page page load. Messages must be retrived by `get()` or `all()`. - * Deprecated the following methods from the Session class: `close()`, `setFlash()`, `setFlashes()` + * [BC BREAK] Removed the `close()` method from the Session class + * Deprecated the following methods from the Session class: `setFlash()`, `setFlashes()` `getFlash()`, `hasFlash()`, and `removeFlash()`. Use `getFlashBag() instead which returns a `FlashBagInterface`. * `Session->clear()` now only clears session attributes as before it cleared flash messages and attributes. `Session->getFlashBag()->all()` clears flashes now. diff --git a/src/Symfony/Component/HttpFoundation/Session/Session.php b/src/Symfony/Component/HttpFoundation/Session/Session.php index d85768c96d..468040e3aa 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Session.php +++ b/src/Symfony/Component/HttpFoundation/Session/Session.php @@ -315,13 +315,4 @@ class Session implements SessionInterface { return $this->getBag('flashes')->clear(); } - - /** - * This method does not do anything. - * - * @deprecated since 2.1, will be removed from 2.3 - */ - public function close() - { - } }