$definition =
(array) $definition +
['provider' =>
[]];
// There can be one or many providers, handle them as multiple always.
$providers =
(array) $definition['provider'
];
return count($providers) ==
count(array_filter($providers,
$provider_exists));
});
} /**
* {@inheritdoc}
*/
public function getDefinitions() { return static::
filterDefinitions($this->decorated->
getDefinitions(),
$this->providerExists
);
} /**
* Passes through all unknown calls onto the decorated object.
*
* @param string $method
* The method to call on the decorated object.
* @param array $args
* Call arguments.
*
* @return mixed
* The return value from the method on the decorated object.
*/