private function getApplier(OptimizerInterface $optimizer, $providerType)
    {
        $provider = $this->providerFactory->create($providerType, ['optimizer' => $optimizer]);

        return $this->applierListFactory->create(['collectionProvider' => $provider]);
    }
private function getApplier(OptimizerInterface $optimizer, $providerType)
    {
        $provider = $this->providerFactory->create($providerType, ['optimizer' => $optimizer]);

        return $this->applierListFactory->create(['collectionProvider' => $provider]);
    }
private function getApplier ( OptimizerInterface $ optimizer , $ providerType ) { $ provider = $ this -> providerFactory -> create ( $ providerType , [ 'optimizer' => $ optimizer ] ) ; return $ this -> applierListFactory -> create ( [ 'collectionProvider' => $ provider ] ) ; }
Retrieve applier of a given type for an optimizer.

@param OptimizerInterface $optimizer    The optimizer
@param string             $providerType The provider type

@return \Smile\ElasticsuiteCatalogOptimizer\Model\Optimizer\ApplierList
Retrieve applier of a given type for an optimizer .