Abstract class with helpers for easing the implementation of a filter.
Author: Kévin Dunglas (dunglas@gmail.com)
Author: Théo FIDRY (theo.fidry@gmail.com)
Inheritance: implements ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\FilterInterface
Example #1
0
 public function __construct(ManagerRegistry $managerRegistry, RequestStack $requestStack, string $orderParameterName, LoggerInterface $logger = null, array $properties = null)
 {
     parent::__construct($managerRegistry, $requestStack, $logger, $properties);
     $this->orderParameterName = $orderParameterName;
 }
Example #2
0
 public function __construct(ManagerRegistry $managerRegistry, RequestStack $requestStack, IriConverterInterface $iriConverter, PropertyAccessorInterface $propertyAccessor = null, LoggerInterface $logger = null, array $properties = null)
 {
     parent::__construct($managerRegistry, $requestStack, $logger, $properties);
     $this->iriConverter = $iriConverter;
     $this->propertyAccessor = $propertyAccessor ?: PropertyAccess::createPropertyAccessor();
 }