From f6641a862f275a38776a12d6c95d72d0f9d4ccde Mon Sep 17 00:00:00 2001 From: Valentin Silvestre Date: Tue, 22 Oct 2024 11:03:04 +0200 Subject: [PATCH] update doc with php const in yaml --- docs/custom_filter.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/custom_filter.md b/docs/custom_filter.md index d0cd7f16..850c602d 100644 --- a/docs/custom_filter.md +++ b/docs/custom_filter.md @@ -15,7 +15,7 @@ use Sylius\Bundle\GridBundle\Doctrine\DataSourceInterface; use Sylius\Component\Grid\Filtering\FilterInterface; use Sylius\Component\Grid\Metadata\AsFilter; -#[AsFilter(type: 'suppliers_statistics', formType: SuppliersStatisticsFilterType::class)] +#[AsFilter(formType: SuppliersStatisticsFilterType::class)] class SuppliersStatisticsFilter implements FilterInterface { public function apply(DataSourceInterface $dataSource, $name, $data, array $options = []): void @@ -108,7 +108,7 @@ sylius_grid: resource: app.tournament filters: stats: - type: suppliers_statistics + type: !php/const App\Grid\Filter\SuppliersStatisticsFilter::class form_options: range: [0, 100] templates: