public function getProviders(DeliveryExecution $execution)
    {
        $serviceManager = $this->getServiceManager();
        $providerService = $serviceManager->get(TestProviderService::SERVICE_ID);
        $providers = $providerService->getAllProviders();
        return array_filter($providers, function ($provider) {
            return !is_null($provider) && $provider->isActive();
        });
    }
public function getProviders(DeliveryExecution $execution)
    {
        $serviceManager = $this->getServiceManager();
        $providerService = $serviceManager->get(TestProviderService::SERVICE_ID);
        $providers = $providerService->getAllProviders();
        return array_filter($providers, function ($provider) {
            return !is_null($provider) && $provider->isActive();
        });
    }
public function getProviders ( DeliveryExecution $ execution ) { $ serviceManager = $ this -> getServiceManager ( ) ; $ providerService = $ serviceManager -> get ( TestProviderService :: SERVICE_ID ) ; $ providers = $ providerService -> getAllProviders ( ) ; return array_filter ( $ providers , function ( $ provider ) { return ! is_null ( $ provider ) && $ provider -> isActive ( ) ; } ) ; }
Get the list of providers for the current execution
@param DeliveryExecution $execution
@return array the list of providers
Get the list of providers for the current execution