From f500a89f5ea35fd675012c30e55d0def0a751cc3 Mon Sep 17 00:00:00 2001 From: Valentin Silvestre Date: Fri, 25 Oct 2024 10:52:37 +0200 Subject: [PATCH] change back to public --- .../DependencyInjection/SyliusGridExtension.php | 4 ++-- src/Component/Attribute/AsFilter.php | 14 ++------------ 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/src/Bundle/DependencyInjection/SyliusGridExtension.php b/src/Bundle/DependencyInjection/SyliusGridExtension.php index 49e0a70f..d12aa280 100644 --- a/src/Bundle/DependencyInjection/SyliusGridExtension.php +++ b/src/Bundle/DependencyInjection/SyliusGridExtension.php @@ -71,8 +71,8 @@ static function (ChildDefinition $definition, AsFilter $attribute, \Reflector $r } $definition->addTag(AsFilter::SERVICE_TAG, [ - 'type' => $attribute->getType() ?? $reflector->getName(), - 'form_type' => $attribute->getFormType(), + 'type' => $attribute->type ?? $reflector->getName(), + 'form_type' => $attribute->formType, ]); }, ); diff --git a/src/Component/Attribute/AsFilter.php b/src/Component/Attribute/AsFilter.php index 8207824d..1bc79d52 100644 --- a/src/Component/Attribute/AsFilter.php +++ b/src/Component/Attribute/AsFilter.php @@ -22,18 +22,8 @@ final class AsFilter * @param class-string $formType The form type class name to use for filter rendering */ public function __construct( - private readonly string $formType, - private readonly ?string $type = null, + public readonly string $formType, + public readonly ?string $type = null, ) { } - - public function getFormType(): string - { - return $this->formType; - } - - public function getType(): ?string - { - return $this->type; - } }