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 string */ |
||
22 | protected $permissionClass; |
||
23 | |||
24 | /** @var string */ |
||
25 | protected $roleClass; |
||
26 | |||
27 | /** @var int */ |
||
28 | public static $cacheExpirationTime; |
||
29 | |||
30 | /** @var string */ |
||
31 | public static $cacheKey; |
||
32 | |||
33 | /** @var string */ |
||
34 | public static $cacheModelKey; |
||
35 | |||
36 | /** @var bool */ |
||
37 | public static $cacheIsTaggable = false; |
||
38 | |||
39 | /** |
||
40 | * PermissionRegistrar constructor. |
||
41 | * |
||
42 | * @param \Illuminate\Contracts\Auth\Access\Gate $gate |
||
43 | * @param \Illuminate\Contracts\Cache\Repository $cache |
||
44 | */ |
||
45 | public function __construct(Gate $gate, Repository $cache) |
||
59 | |||
60 | /** |
||
61 | * Register the permission check method on the gate. |
||
62 | * |
||
63 | * @return bool |
||
64 | */ |
||
65 | public function registerPermissions(): bool |
||
78 | |||
79 | /** |
||
80 | * Flush the cache. |
||
81 | */ |
||
82 | public function forgetCachedPermissions() |
||
86 | |||
87 | /** |
||
88 | * Get the permissions based on the passed params. |
||
89 | * |
||
90 | * @param array $params |
||
91 | * |
||
92 | * @return \Illuminate\Support\Collection |
||
93 | */ |
||
94 | public function getPermissions(array $params = []): Collection |
||
114 | |||
115 | /** |
||
116 | * Get the key for caching. |
||
117 | * |
||
118 | * @param $params |
||
119 | * |
||
120 | * @return string |
||
121 | */ |
||
122 | public function getKey(array $params): string |
||
130 | |||
131 | /** |
||
132 | * Get an instance of the permission class. |
||
133 | * |
||
134 | * @return \Spatie\Permission\Contracts\Permission |
||
135 | */ |
||
136 | public function getPermissionClass(): Permission |
||
140 | |||
141 | /** |
||
142 | * Get an instance of the role class. |
||
143 | * |
||
144 | * @return \Spatie\Permission\Contracts\Role |
||
145 | */ |
||
146 | public function getRoleClass(): Role |
||
150 | } |
||
151 |
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.