WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Vendor\League\Container\ServiceProvider

ServiceProviderAggregate::provides() public WC 1.0

{@inheritdoc}

{} It's a method of the class: ServiceProviderAggregate{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of ServiceProviderAggregate::provides() WC 5.8.0

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

    return false;
}