| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class DnVariantSwitch extends Plugin |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @param ContainerBuilder $container |
||
| 19 | */ |
||
| 20 | public function build(ContainerBuilder $container) |
||
| 21 | { |
||
| 22 | $container->setParameter('dn_variant_switch.plugin_dir', $this->getPath()); |
||
| 23 | |||
| 24 | parent::build($container); |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param InstallContext $context |
||
| 29 | */ |
||
| 30 | public function install(InstallContext $context) |
||
| 31 | { |
||
| 32 | parent::install($context); |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param ActivateContext $context |
||
| 37 | */ |
||
| 38 | public function activate(ActivateContext $context) |
||
| 39 | { |
||
| 40 | $context->scheduleClearCache(InstallContext::CACHE_LIST_ALL); |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param UpdateContext $context |
||
| 45 | */ |
||
| 46 | public function update(UpdateContext $context) |
||
| 49 | } |
||
| 50 | } |
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