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