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 for remove an alias
*
* @author gbprod <[email protected]>
*/
class RemoveAliasHandler
{
* Handle remove alias command
* @param Client $client
* @param string $index
* @param string $alias
public function handle(Client $client, $index, $alias)
$client->getIndex($index)->removeAlias($alias);
}