1 | <?php |
||
2 | |||
3 | namespace DnVariantSwitch; |
||
4 | |||
5 | use Shopware\Components\Plugin; |
||
0 ignored issues
–
show
|
|||
6 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
||
0 ignored issues
–
show
The type
Symfony\Component\Depend...ection\ContainerBuilder was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
7 | use Shopware\Components\Plugin\Context\ActivateContext; |
||
0 ignored issues
–
show
The type
Shopware\Components\Plugin\Context\ActivateContext was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
8 | use Shopware\Components\Plugin\Context\InstallContext; |
||
0 ignored issues
–
show
The type
Shopware\Components\Plugin\Context\InstallContext was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
9 | use Shopware\Components\Plugin\Context\UpdateContext; |
||
0 ignored issues
–
show
The type
Shopware\Components\Plugin\Context\UpdateContext was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
10 | |||
11 | /** |
||
12 | * Class DnVariantSwitch |
||
13 | * @package DnVariantSwitch |
||
14 | */ |
||
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) |
||
47 | { |
||
48 | $context->scheduleClearCache(InstallContext::CACHE_LIST_ALL); |
||
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