[HttpFoundation] removed Session::close()
This commit is contained in:
parent
c59d880593
commit
cb6fdb1f5e
@ -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.
|
This makes the implementation ESI compatible.
|
||||||
* Added `AutoExpireFlashBag` (default) to replicate Symfony 2.0.x auto expire behaviour of messages auto expiring
|
* 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()`.
|
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`.
|
`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
|
* `Session->clear()` now only clears session attributes as before it cleared flash messages and
|
||||||
attributes. `Session->getFlashBag()->all()` clears flashes now.
|
attributes. `Session->getFlashBag()->all()` clears flashes now.
|
||||||
|
@ -315,13 +315,4 @@ class Session implements SessionInterface
|
|||||||
{
|
{
|
||||||
return $this->getBag('flashes')->clear();
|
return $this->getBag('flashes')->clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method does not do anything.
|
|
||||||
*
|
|
||||||
* @deprecated since 2.1, will be removed from 2.3
|
|
||||||
*/
|
|
||||||
public function close()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user