Conditions | 2 |
Paths | 2 |
Total Lines | 19 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
55 | protected static function getKernel() |
||
56 | { |
||
57 | $di = new FactoryDefault(); |
||
58 | |||
59 | $servicesPath = __DIR__.'/../../../../app/config/services.php'; |
||
60 | |||
61 | try { |
||
62 | include $servicesPath; |
||
63 | } catch (\Exception $e) { |
||
64 | throw FileNotFound::servicesFileNotFound( |
||
65 | 'Try passing the Yarak config array as the third argument '. |
||
66 | 'to Yarak::call.' |
||
67 | ); |
||
68 | } |
||
69 | |||
70 | $di->getConfig(); |
||
71 | |||
72 | return $di->get('yarak'); |
||
73 | } |
||
74 | } |
||
75 |