Total Complexity | 3 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class TemplateRegistration implements SubscriberInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private $pluginDirectory; |
||
17 | |||
18 | /** |
||
19 | * @var \Enlight_Template_Manager |
||
20 | */ |
||
21 | private $templateManager; |
||
22 | |||
23 | /** |
||
24 | * TemplateRegistration constructor. |
||
25 | * @param $pluginDirectory |
||
26 | * @param \Enlight_Template_Manager $templateManager |
||
27 | */ |
||
28 | public function __construct( |
||
29 | $pluginDirectory, |
||
30 | \Enlight_Template_Manager $templateManager |
||
31 | ) |
||
32 | { |
||
33 | $this->pluginDirectory = $pluginDirectory; |
||
34 | $this->templateManager = $templateManager; |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | public static function getSubscribedEvents() |
||
41 | { |
||
42 | return [ |
||
43 | 'Enlight_Controller_Action_PreDispatch' => 'onPreDispatch', |
||
44 | ]; |
||
45 | } |
||
46 | |||
47 | public function onPreDispatch() |
||
50 | } |
||
51 | } |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths