Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function __construct(IView $view) |
||
23 | { |
||
24 | if ((new KernelInjector())->build()->isDebug()) { |
||
25 | $this->js[] = '/js/bootstrap.js'; |
||
26 | $this->css[] = '/css/bootstrap.css'; |
||
27 | } else { |
||
28 | $this->js[] = '/js/bootstrap.min.js'; |
||
29 | $this->css[] = '/css/bootstrap.min.css'; |
||
30 | } |
||
31 | |||
32 | $this->sourcePath = (new KernelInjector)->build()->getAppDir() . '/../vendor/twbs/bootstrap/dist'; |
||
33 | |||
34 | parent::__construct($view); |
||
35 | } |
||
36 | } |
||
37 |