| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 89 | 4 | public function process(ContainerBuilder $container) |
|
| 90 | { |
||
| 91 | 4 | $bootstrapPath = $container->getParameter($this->getContainerParamOrServiceId('kernel.bootstrap')); |
|
| 92 | 4 | if ($bootstrapPath) { |
|
| 93 | 2 | $bootstrap = sprintf( |
|
| 94 | 2 | '%s/%s', |
|
| 95 | 2 | $container->getParameter('paths.base'), |
|
| 96 | $bootstrapPath |
||
| 97 | 2 | ); |
|
| 98 | 2 | if (file_exists($bootstrap)) { |
|
| 99 | 1 | require_once($bootstrap); |
|
| 100 | 1 | } else { |
|
| 101 | 1 | throw new ProcessingException('Could not find bootstrap file !'); |
|
| 102 | } |
||
| 103 | 1 | } |
|
| 104 | 3 | } |
|
| 105 | } |
||
| 106 |