| @@ 42-53 (lines=12) @@ | ||
| 39 | * |
|
| 40 | * @return PagerProviderInterface[] |
|
| 41 | */ |
|
| 42 | public function getAllProviders() |
|
| 43 | { |
|
| 44 | $providers = []; |
|
| 45 | ||
| 46 | foreach ($this->providers as $index => $indexProviders) { |
|
| 47 | foreach ($indexProviders as $type => $providerId) { |
|
| 48 | $providers[sprintf('%s/%s', $index, $type)] = $this->container->get($providerId); |
|
| 49 | } |
|
| 50 | } |
|
| 51 | ||
| 52 | return $providers; |
|
| 53 | } |
|
| 54 | ||
| 55 | /** |
|
| 56 | * Gets all providers for an index. |
|
| @@ 52-63 (lines=12) @@ | ||
| 49 | * |
|
| 50 | * @return array of ProviderInterface instances |
|
| 51 | */ |
|
| 52 | public function getAllProviders() |
|
| 53 | { |
|
| 54 | $providers = []; |
|
| 55 | ||
| 56 | foreach ($this->providers as $index => $indexProviders) { |
|
| 57 | foreach ($indexProviders as $type => $providerId) { |
|
| 58 | $providers[sprintf('%s/%s', $index, $type)] = $this->container->get($providerId); |
|
| 59 | } |
|
| 60 | } |
|
| 61 | ||
| 62 | return $providers; |
|
| 63 | } |
|
| 64 | ||
| 65 | /** |
|
| 66 | * Gets all providers for an index. |
|