summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2015-02-21 10:47:19 (GMT)
committerAlex Pott2015-02-21 10:47:19 (GMT)
commitf029fbbe7878fa762b2a9ef9137175eea5c1b349 (patch)
treea2d53e9a24521fcca0e76af54305e1987128b5d5
parent78fd4d0c2c0b9b5e08ca6e84f644718067ede8f9 (diff)
Issue #2429103 by cpj: Remove deprecated methods SessionManager::enable(), SessionManager::disable() and SessionManager::isEnabled()
-rw-r--r--core/lib/Drupal/Core/Session/SessionManager.php23
-rw-r--r--core/lib/Drupal/Core/Session/SessionManagerInterface.php37
2 files changed, 0 insertions, 60 deletions
diff --git a/core/lib/Drupal/Core/Session/SessionManager.php b/core/lib/Drupal/Core/Session/SessionManager.php
index 8249805..f9496d3 100644
--- a/core/lib/Drupal/Core/Session/SessionManager.php
+++ b/core/lib/Drupal/Core/Session/SessionManager.php
@@ -266,29 +266,6 @@ class SessionManager extends NativeSessionStorage implements SessionManagerInter
/**
* {@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}
- */
public function setWriteSafeHandler(WriteSafeSessionHandlerInterface $handler) {
$this->writeSafeHandler = $handler;
}
diff --git a/core/lib/Drupal/Core/Session/SessionManagerInterface.php b/core/lib/Drupal/Core/Session/SessionManagerInterface.php
index fad62b7..d194002 100644
--- a/core/lib/Drupal/Core/Session/SessionManagerInterface.php
+++ b/core/lib/Drupal/Core/Session/SessionManagerInterface.php
@@ -23,43 +23,6 @@ interface SessionManagerInterface extends SessionStorageInterface {
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.
*
* @todo: This should be removed once all database queries are removed from