We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c6e3ea commit 07e3d4bCopy full SHA for 07e3d4b
security/expressions.rst
@@ -215,10 +215,7 @@ returns an array of values that will be injected into the closure::
215
216
class MyController extends AbstractController
217
{
218
- #[IsGranted(static function (
219
- IsGrantedContext $context,
220
- mixed $subject,
221
- ) {
+ #[IsGranted(static function (IsGrantedContext $context, mixed $subject) {
222
return $context->user === $subject['post']->getAuthor();
223
}, subject: static function (array $args) {
224
return [
0 commit comments