| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function resolveBundles(Application $application, array $names) |
||
| 30 | { |
||
| 31 | $bundles = $application->getKernel()->getBundles(); |
||
| 32 | |||
| 33 | $result = []; |
||
| 34 | foreach ($names as $name) { |
||
| 35 | if (false === isset($bundles[$name])) { |
||
| 36 | throw BundleNotFoundException::create($name, $bundles); |
||
| 37 | } |
||
| 38 | |||
| 39 | $result[$name] = $bundles[$name]; |
||
| 40 | } |
||
| 41 | |||
| 42 | return array_values($result); |
||
| 43 | } |
||
| 44 | } |
||
| 45 |