From 47483ee290149fef38fff17cdb85ca54cd0dba80 Mon Sep 17 00:00:00 2001 From: SMorteza Ebadi <47121888+smortexa@users.noreply.github.com> Date: Sat, 25 Mar 2023 20:24:42 +0330 Subject: [PATCH] set container instance on cache manager (#46594) --- src/Illuminate/Cache/CacheManager.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/Illuminate/Cache/CacheManager.php b/src/Illuminate/Cache/CacheManager.php index 84936d73d756..830e5061aca8 100755 --- a/src/Illuminate/Cache/CacheManager.php +++ b/src/Illuminate/Cache/CacheManager.php @@ -407,6 +407,19 @@ public function extend($driver, Closure $callback) return $this; } + /** + * Set the application instance used by the manager. + * + * @param \Illuminate\Contracts\Foundation\Application $app + * @return $this + */ + public function setApplication($app) + { + $this->app = $app; + + return $this; + } + /** * Dynamically call the default driver instance. *