1 | <?php |
||
13 | class PermissionRegistrar |
||
14 | { |
||
15 | /** @var \Illuminate\Contracts\Auth\Access\Gate */ |
||
16 | protected $gate; |
||
17 | |||
18 | /** @var \Illuminate\Contracts\Cache\Repository */ |
||
19 | protected $cache; |
||
20 | |||
21 | /** @var \Illuminate\Cache\CacheManager */ |
||
22 | protected $cacheManager; |
||
23 | |||
24 | /** @var string */ |
||
25 | protected $permissionClass; |
||
26 | |||
27 | /** @var string */ |
||
28 | protected $roleClass; |
||
29 | |||
30 | /** @var \Illuminate\Support\Collection */ |
||
31 | protected $permissions; |
||
32 | |||
33 | /** @var DateInterval|int */ |
||
34 | public static $cacheExpirationTime; |
||
35 | |||
36 | /** @var string */ |
||
37 | public static $cacheKey; |
||
38 | |||
39 | /** @var string */ |
||
40 | public static $cacheModelKey; |
||
41 | |||
42 | /** |
||
43 | * PermissionRegistrar constructor. |
||
44 | * |
||
45 | * @param \Illuminate\Contracts\Auth\Access\Gate $gate |
||
46 | * @param \Illuminate\Cache\CacheManager $cacheManager |
||
47 | */ |
||
48 | public function __construct(Gate $gate, CacheManager $cacheManager) |
||
57 | |||
58 | protected function initializeCache() |
||
74 | |||
75 | protected function getCacheStoreFromConfig(): \Illuminate\Contracts\Cache\Repository |
||
92 | |||
93 | /** |
||
94 | * Register the permission check method on the gate. |
||
95 | * |
||
96 | * @return bool |
||
97 | */ |
||
98 | public function registerPermissions(): bool |
||
111 | |||
112 | /** |
||
113 | * Flush the cache. |
||
114 | */ |
||
115 | public function forgetCachedPermissions() |
||
120 | |||
121 | /** |
||
122 | * Get the permissions based on the passed params. |
||
123 | * |
||
124 | * @param array $params |
||
125 | * |
||
126 | * @return \Illuminate\Support\Collection |
||
127 | */ |
||
128 | public function getPermissions(array $params = []): Collection |
||
146 | |||
147 | /** |
||
148 | * Get an instance of the permission class. |
||
149 | * |
||
150 | * @return \Spatie\Permission\Contracts\Permission |
||
151 | */ |
||
152 | public function getPermissionClass(): Permission |
||
156 | |||
157 | /** |
||
158 | * Get an instance of the role class. |
||
159 | * |
||
160 | * @return \Spatie\Permission\Contracts\Role |
||
161 | */ |
||
162 | public function getRoleClass(): Role |
||
166 | |||
167 | /** |
||
168 | * Get the instance of the Cache Store. |
||
169 | * |
||
170 | * @return \Illuminate\Contracts\Cache\Store |
||
171 | */ |
||
172 | public function getCacheStore(): \Illuminate\Contracts\Cache\Store |
||
176 | } |
||
177 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.