Skip to content

Commit

Permalink
[HttpFoundation] removed Session::close()
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Feb 11, 2012
1 parent c59d880 commit cb6fdb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG-2.1.md
Expand Up @@ -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.
Expand Down
9 changes: 0 additions & 9 deletions src/Symfony/Component/HttpFoundation/Session/Session.php
Expand Up @@ -315,13 +315,4 @@ public function clearFlashes()
{
return $this->getBag('flashes')->clear();
}

/**
* This method does not do anything.
*
* @deprecated since 2.1, will be removed from 2.3
*/
public function close()
{
}
}

0 comments on commit cb6fdb1

Please sign in to comment.