Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function __construct( |
||
30 | DwooEngineFactory $engine, |
||
31 | Container $container, |
||
32 | ConfigService $config |
||
33 | ) |
||
34 | { |
||
35 | parent::__construct($container, $config); |
||
36 | |||
37 | $pluginResourcesDirs = $container->getParameter('plugins.view.dirs'); |
||
38 | |||
39 | foreach ($pluginResourcesDirs as $pluginResourcesDir) { |
||
40 | $viewsDir = $pluginResourcesDir; |
||
41 | if (!is_dir($viewsDir)) { |
||
42 | continue; |
||
43 | } |
||
44 | $this->setTemplateDir($viewsDir); |
||
45 | } |
||
47 | } |