File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 55use Illuminate \Cache \CacheManager ;
66use Illuminate \Contracts \Auth \Access \Authorizable ;
77use Illuminate \Contracts \Auth \Access \Gate ;
8+ use Illuminate \Contracts \Cache \Repository ;
9+ use Illuminate \Contracts \Cache \Store ;
810use Illuminate \Database \Eloquent \Collection ;
911use Spatie \Permission \Contracts \Permission ;
1012use Spatie \Permission \Contracts \Role ;
@@ -79,7 +81,7 @@ public function initializeCache()
7981 $ this ->cache = $ this ->getCacheStoreFromConfig ();
8082 }
8183
82- protected function getCacheStoreFromConfig (): \ Illuminate \ Contracts \ Cache \ Repository
84+ protected function getCacheStoreFromConfig (): Repository
8385 {
8486 // the 'default' fallback here is from the permission.php config file,
8587 // where 'default' means to use config(cache.default)
@@ -265,12 +267,12 @@ public function setRoleClass($roleClass)
265267 return $ this ;
266268 }
267269
268- /**
269- * Get the instance of the Cache Store.
270- *
271- * @return \Illuminate\Contracts\Cache\Store
272- */
273- public function getCacheStore (): \ Illuminate \ Contracts \ Cache \ Store
270+ public function getCacheRepository (): Repository
271+ {
272+ return $ this -> cache ;
273+ }
274+
275+ public function getCacheStore (): Store
274276 {
275277 return $ this ->cache ->getStore ();
276278 }
You can’t perform that action at this time.
0 commit comments