ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\AbstractFilter::__construct PHP Method

__construct() public method

public __construct ( Doctrine\Common\Persistence\ManagerRegistry $managerRegistry, Symfony\Component\HttpFoundation\RequestStack $requestStack, Psr\Log\LoggerInterface $logger = null, array $properties = null )
$managerRegistry Doctrine\Common\Persistence\ManagerRegistry
$requestStack Symfony\Component\HttpFoundation\RequestStack
$logger Psr\Log\LoggerInterface
$properties array
    public function __construct(ManagerRegistry $managerRegistry, RequestStack $requestStack, LoggerInterface $logger = null, array $properties = null)
    {
        $this->managerRegistry = $managerRegistry;
        $this->requestStack = $requestStack;
        $this->logger = $logger ?? new NullLogger();
        $this->properties = $properties;
    }

Usage Example

コード例 #1
0
ファイル: OrderFilter.php プロジェクト: api-platform/core
 public function __construct(ManagerRegistry $managerRegistry, RequestStack $requestStack, string $orderParameterName, LoggerInterface $logger = null, array $properties = null)
 {
     parent::__construct($managerRegistry, $requestStack, $logger, $properties);
     $this->orderParameterName = $orderParameterName;
 }
All Usage Examples Of ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\AbstractFilter::__construct