From 7a71c292c0ae656c622cff883638e77de6f0bfde Mon Sep 17 00:00:00 2001 From: Mohamed Said Date: Mon, 31 May 2021 14:52:50 +0200 Subject: [PATCH] add setContainer to DatabaseSessionHandler --- src/Illuminate/Session/DatabaseSessionHandler.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/Illuminate/Session/DatabaseSessionHandler.php b/src/Illuminate/Session/DatabaseSessionHandler.php index 7781a0131ff3..82003bde9dd2 100644 --- a/src/Illuminate/Session/DatabaseSessionHandler.php +++ b/src/Illuminate/Session/DatabaseSessionHandler.php @@ -279,6 +279,19 @@ protected function getQuery() return $this->connection->table($this->table); } + /** + * Set the application instance used by the handler. + * + * @param \Illuminate\Contracts\Foundation\Application $container + * @return $this + */ + public function setContainer($container) + { + $this->container = $container; + + return $this; + } + /** * Set the existence state for the session. *