protected function getClient($clientName)
    {
        $clientName = $clientName ?: 'gbprod.elastica_extra.default_client';

        $client = $this->getContainer()
            ->get(
                $clientName,
                ContainerInterface::NULL_ON_INVALID_REFERENCE
            )
        ;

        $this->validateClient($client, $clientName);

        return $client;
    }
protected function getClient($clientName)
    {
        $clientName = $clientName ?: 'gbprod.elastica_extra.default_client';

        $client = $this->getContainer()
            ->get(
                $clientName,
                ContainerInterface::NULL_ON_INVALID_REFERENCE
            )
        ;

        $this->validateClient($client, $clientName);

        return $client;
    }
protected function getClient ( $ clientName ) { $ clientName = $ clientName ? : 'gbprod.elastica_extra.default_client' ; $ client = $ this -> getContainer ( ) -> get ( $ clientName , ContainerInterface :: NULL_ON_INVALID_REFERENCE ) ; $ this -> validateClient ( $ client , $ clientName ) ; return $ client ; }
Get elasticsearch client from his name

@param string $clientName

@return Client
Get elasticsearch client from his name