@@ -3,9 +3,8 @@ |
||
3 | 3 | namespace Sco\Admin\Component; |
4 | 4 | |
5 | 5 | use BadMethodCallException; |
6 | -use Illuminate\Support\Collection; |
|
7 | -use InvalidArgumentException; |
|
8 | 6 | use Illuminate\Foundation\Application; |
7 | +use InvalidArgumentException; |
|
9 | 8 | use Sco\Admin\Component\Concerns\HasAccess; |
10 | 9 | use Sco\Admin\Component\Concerns\HasEvents; |
11 | 10 | use Sco\Admin\Component\Concerns\HasNavigation; |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | /** |
75 | 75 | * Get the observable event names. |
76 | 76 | * |
77 | - * @return array |
|
77 | + * @return string[] |
|
78 | 78 | */ |
79 | 79 | public function getObservableAbilities() |
80 | 80 | { |
@@ -87,6 +87,9 @@ discard block |
||
87 | 87 | ); |
88 | 88 | } |
89 | 89 | |
90 | + /** |
|
91 | + * @param string $ability |
|
92 | + */ |
|
90 | 93 | public function registerAccess($ability, $callback) |
91 | 94 | { |
92 | 95 | static::$abilities->put($ability, $callback); |