@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | * Set the authentication service. |
46 | 46 | * |
47 | 47 | * @param Authenticator $authenticator The authentication service. |
48 | - * @return AuthAwareInterface |
|
48 | + * @return AuthAwareTrait |
|
49 | 49 | */ |
50 | 50 | protected function setAuthenticator(Authenticator $authenticator) |
51 | 51 | { |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * Set the authorization service. |
77 | 77 | * |
78 | 78 | * @param Authorizer $authorizer The authorization service. |
79 | - * @return AuthAwareInterface |
|
79 | + * @return AuthAwareTrait |
|
80 | 80 | */ |
81 | 81 | protected function setAuthorizer(Authorizer $authorizer) |
82 | 82 | { |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | } |
145 | 145 | |
146 | 146 | /** |
147 | - * @param array $permissions The list of required permissions to check. |
|
147 | + * @param string[] $permissions The list of required permissions to check. |
|
148 | 148 | * @return boolean |
149 | 149 | */ |
150 | 150 | public function hasPermissions(array $permissions) |
@@ -103,11 +103,11 @@ |
||
103 | 103 | return $this->authorizer; |
104 | 104 | } |
105 | 105 | |
106 | - /** |
|
107 | - * @param string[]|string|null $permissions The list of required permissions. |
|
108 | - * @throws InvalidArgumentException If the permissions are not an array or a comma-separated string. |
|
109 | - * @return AuthAwareTrait Chainable |
|
110 | - */ |
|
106 | + /** |
|
107 | + * @param string[]|string|null $permissions The list of required permissions. |
|
108 | + * @throws InvalidArgumentException If the permissions are not an array or a comma-separated string. |
|
109 | + * @return AuthAwareTrait Chainable |
|
110 | + */ |
|
111 | 111 | protected function setRequiredAclPermissions($permissions) |
112 | 112 | { |
113 | 113 | if ($permissions === null || !$permissions) { |