Skip to content

Commit

Permalink
update doc with php const in yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
vasilvestre committed Oct 22, 2024
1 parent 215bc11 commit f6641a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/custom_filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit f6641a8

Please sign in to comment.