Skip to content

Instantly share code, notes, and snippets.

View bendavies's full-sized avatar
🏠
Working from home

Ben Davies bendavies

🏠
Working from home
View GitHub Profile
@bendavies
bendavies / JsonFilter.php
Created October 7, 2020 12:23 — forked from thomas-seres/JsonFilter.deprecated.php
API Platform - JSON Filter
<?php
/**
*
* @author Thomas Sérès <thomas.seres@gmail.com>
*/
namespace App\Filter;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\AbstractContextAwareFilter;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface;
use ApiPlatform\Core\Exception\InvalidArgumentException;