| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 12 | public static function loadKernel(KernelInterface $kernel) |
||
| 13 | { |
||
| 14 | if (null === static::$appKernel) { |
||
| 15 | $kernelClass = \get_class($kernel); |
||
| 16 | static::$appKernel = new $kernelClass('dev', true); |
||
| 17 | //static::$appKernel = clone $kernel; |
||
| 18 | // NOTE: If we clone, it's take too much time in dev mod |
||
| 19 | static::$appKernel->boot(); |
||
| 20 | } |
||
| 23 |