Skip to content

Commit

Permalink
set container instance on cache manager (#46594)
Browse files Browse the repository at this point in the history
  • Loading branch information
smortexa authored Mar 25, 2023
1 parent 974432c commit 47483ee
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Illuminate/Cache/CacheManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 47483ee

Please sign in to comment.