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