Commit f029fbbe authored by alexpott's avatar alexpott

Issue #2429103 by cpj: Remove deprecated methods SessionManager::enable(),...

Issue #2429103 by cpj: Remove deprecated methods SessionManager::enable(), SessionManager::disable() and SessionManager::isEnabled()
parent 78fd4d0c
...@@ -263,29 +263,6 @@ public function delete($uid) { ...@@ -263,29 +263,6 @@ public function delete($uid) {
->execute(); ->execute();
} }
/**
* {@inheritdoc}
*/
public function isEnabled() {
return $this->writeSafeHandler->isSessionWritable();
}
/**
* {@inheritdoc}
*/
public function disable() {
$this->writeSafeHandler->setSessionWritable(FALSE);
return $this;
}
/**
* {@inheritdoc}
*/
public function enable() {
$this->writeSafeHandler->setSessionWritable(TRUE);
return $this;
}
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
......
...@@ -22,43 +22,6 @@ interface SessionManagerInterface extends SessionStorageInterface { ...@@ -22,43 +22,6 @@ interface SessionManagerInterface extends SessionStorageInterface {
*/ */
public function delete($uid); public function delete($uid);
/**
* Determines whether to save session data of the current request.
*
* @return bool
* FALSE if writing session data has been disabled. TRUE otherwise.
*
* @deprecated in Drupal 8.0.x, will be removed before Drupal 8.0.0
* Use \Drupal\Core\Session\WriteSafeSessionHandler::isSessionWritable()
*/
public function isEnabled();
/**
* Temporarily disables saving of session data.
*
* This function allows the caller to temporarily disable writing of
* session data, should the request end while performing potentially
* dangerous operations, such as manipulating the global $user object.
*
* @see https://drupal.org/node/218104
*
* @return $this
*
* @deprecated in Drupal 8.0.x, will be removed before Drupal 8.0.0
* Use \Drupal\Core\Session\WriteSafeSessionHandler::setSessionWritable(FALSE)
*/
public function disable();
/**
* Re-enables saving of session data.
*
* @return $this
*
* @deprecated in Drupal 8.0.x, will be removed before Drupal 8.0.0
* Use \Drupal\Core\Session\WriteSafeSessionHandler::setSessionWritable(True)
*/
public function enable();
/** /**
* Sets the write safe session handler. * Sets the write safe session handler.
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment