for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace GBProd\ElasticaExtraBundle\Handler;
use Elastica\Client;
/**
* Handler to delete index command
*
* @author gbprod <[email protected]>
*/
class DeleteIndexHandler
{
* Handle index deletion command
* @param Client $client
* @param string $index
public function handle(Client $client, $index)
$client->getIndex($index)->delete();
}