ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\AbstractFilter::__construct PHP Метод

__construct() публичный метод

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
 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