Minor tweak

This commit is contained in:
Javier Eguiluz
2025-03-11 08:40:59 +01:00
parent 0c6e3eae3d
commit 07e3d4bef6

View File

@@ -215,10 +215,7 @@ returns an array of values that will be injected into the closure::
class MyController extends AbstractController
{
#[IsGranted(static function (
IsGrantedContext $context,
mixed $subject,
) {
#[IsGranted(static function (IsGrantedContext $context, mixed $subject) {
return $context->user === $subject['post']->getAuthor();
}, subject: static function (array $args) {
return [