for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace GBProd\ElasticsearchDataProviderBundle\DataProvider;
use Elasticsearch\Client;
/**
* Handle data providing
*
* @author gbprod <[email protected]>
*/
class Handler
{
* @var Registry
private $registry;
* @param Registry $registry
public function __construct(Registry $registry)
$this->registry = $registry;
}
* Handle provide command
public function handle(Client $client, $index, $type)
$providers = $this->registry->getProviders($index, $type);
foreach($providers as $provider) {
$provider->run($client, $index, $type);