diff --git a/Controller/Annotations/FileParam.php b/Controller/Annotations/FileParam.php index 33b7fe8c2..15e8bad9b 100644 --- a/Controller/Annotations/FileParam.php +++ b/Controller/Annotations/FileParam.php @@ -22,11 +22,11 @@ * * @Annotation * @NamedArgumentConstructor - * @Target("METHOD") + * @Target({"METHOD", "CLASS"}) * * @author Ener-Getick */ -#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_METHOD)] +#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_METHOD | \Attribute::TARGET_CLASS)] class FileParam extends AbstractParam { /** @var bool */ diff --git a/Controller/Annotations/RequestParam.php b/Controller/Annotations/RequestParam.php index 34252149b..dc45f45aa 100644 --- a/Controller/Annotations/RequestParam.php +++ b/Controller/Annotations/RequestParam.php @@ -18,12 +18,12 @@ * * @Annotation * @NamedArgumentConstructor - * @Target("METHOD") + * @Target({"METHOD", "CLASS"}) * * @author Jordi Boggiano * @author Boris Guéry */ -#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_METHOD)] +#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_METHOD | \Attribute::TARGET_CLASS)] class RequestParam extends AbstractScalarParam { /** @var bool */