Skip to content

Instantly share code, notes, and snippets.

View lekeutch's full-sized avatar

Stève KEUTCHANKEU lekeutch

View GitHub Profile
@dunglas
dunglas / DataProvider.php
Last active January 9, 2017 11:11
FOSElastica paginator for API Platform v1 Raw
<?php
namespace Acme\ApiPlatform\FOSElastica;
use Dunglas\ApiBundle\Api\ResourceInterface;
use Dunglas\ApiBundle\Model\DataProviderInterface;
use Elastica\Query;
use FOS\ElasticaBundle\Finder\PaginatedFinderInterface;
use Symfony\Component\HttpFoundation\Request;