@@ -207,30 +207,30 @@ protected function addFlash(string $type, $message): void
207
207
}
208
208
209
209
/**
210
- * Checks if the attributes are granted against the current authentication token and optionally supplied subject.
210
+ * Checks if the attribute is granted against the current authentication token and optionally supplied subject.
211
211
*
212
212
* @throws \LogicException
213
213
*/
214
- protected function isGranted ($ attributes , $ subject = null ): bool
214
+ protected function isGranted ($ attribute , $ subject = null ): bool
215
215
{
216
216
if (!$ this ->container ->has ('security.authorization_checker ' )) {
217
217
throw new \LogicException ('The SecurityBundle is not registered in your application. Try running "composer require symfony/security-bundle". ' );
218
218
}
219
219
220
- return $ this ->container ->get ('security.authorization_checker ' )->isGranted ($ attributes , $ subject );
220
+ return $ this ->container ->get ('security.authorization_checker ' )->isGranted ($ attribute , $ subject );
221
221
}
222
222
223
223
/**
224
- * Throws an exception unless the attributes are granted against the current authentication token and optionally
224
+ * Throws an exception unless the attribute is granted against the current authentication token and optionally
225
225
* supplied subject.
226
226
*
227
227
* @throws AccessDeniedException
228
228
*/
229
- protected function denyAccessUnlessGranted ($ attributes , $ subject = null , string $ message = 'Access Denied. ' ): void
229
+ protected function denyAccessUnlessGranted ($ attribute , $ subject = null , string $ message = 'Access Denied. ' ): void
230
230
{
231
- if (!$ this ->isGranted ($ attributes , $ subject )) {
231
+ if (!$ this ->isGranted ($ attribute , $ subject )) {
232
232
$ exception = $ this ->createAccessDeniedException ($ message );
233
- $ exception ->setAttributes ($ attributes );
233
+ $ exception ->setAttributes ($ attribute );
234
234
$ exception ->setSubject ($ subject );
235
235
236
236
throw $ exception ;
0 commit comments