30 array $dataProviders = []
33 $this->providers = $dataProviders;
45 if (!isset($this->providers[
$type])) {
46 throw new \InvalidArgumentException(
'Unknown provider with type: ' .
$type);
49 $provider = $this->providers[
$type];
51 if (is_string($provider)) {
52 $provider = $this->objectManager->get($provider);
56 throw new \InvalidArgumentException(
'Provider should implement DataProviderInterface');
59 $this->providers[
$type] = $provider;
61 return $this->providers[
$type];
70 foreach (array_keys($this->providers) as
$type) {