| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| 1 | <?php |
||
| 28 | 7 | public function getBundles() |
|
| 29 | { |
||
| 30 | $bundles = array( |
||
| 31 | 7 | new GravitonCoreBundle() |
|
| 32 | 7 | ); |
|
| 33 | |||
| 34 | /*** LOOK AFTER DYNAMIC BUNDLEBUNDLE ***/ |
||
| 35 | |||
| 36 | // @todo it seems we have no container at this point - how to make this configurable? |
||
| 37 | 7 | $dynamicBundleBundle = '\GravitonDyn\BundleBundle\GravitonDynBundleBundle'; |
|
| 38 | |||
| 39 | 7 | if (class_exists($dynamicBundleBundle)) { |
|
| 40 | 7 | $bundles[] = new $dynamicBundleBundle(); |
|
| 41 | 7 | } |
|
| 42 | |||
| 43 | 7 | return $bundles; |
|
| 44 | } |
||
| 45 | } |
||
| 46 |