Automattic\WooCommerce\Vendor\League\Container\ServiceProvider

ServiceProviderAggregate::provides()publicWC 1.0

{@inheritdoc}

Method of the class: ServiceProviderAggregate{}

No Hooks.

Return

null. Nothing.

Usage

$ServiceProviderAggregate = new ServiceProviderAggregate();
$ServiceProviderAggregate->provides( $service ) : bool;
$service(string) (required)
-

ServiceProviderAggregate::provides() code WC 7.1.0

public function provides(string $service) : bool
{
    foreach ($this->getIterator() as $provider) {
        if ($provider->provides($service)) {
            return true;
        }
    }

    return false;
}