1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* MIT License |
5
|
|
|
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. |
6
|
|
|
*/ |
7
|
|
|
|
8
|
|
|
namespace SprykerEco\Zed\Econda; |
9
|
|
|
|
10
|
|
|
use Spryker\Zed\Kernel\AbstractBundleDependencyProvider; |
|
|
|
|
11
|
|
|
use Spryker\Zed\Kernel\Container; |
|
|
|
|
12
|
|
|
use SprykerEco\Zed\Econda\Communication\Plugin\CategoryPlugin; |
13
|
|
|
use SprykerEco\Zed\Econda\Communication\Plugin\ProductsPlugin; |
14
|
|
|
use SprykerEco\Zed\Econda\Dependency\Facade\EcondaToLocaleBridge; |
15
|
|
|
use SprykerEco\Zed\Econda\Dependency\Facade\EcondaToPriceBridge; |
16
|
|
|
use SprykerEco\Zed\Econda\Dependency\Facade\EcondaToPropelBridge; |
17
|
|
|
|
18
|
|
|
class EcondaDependencyProvider extends AbstractBundleDependencyProvider |
19
|
|
|
{ |
20
|
|
|
|
21
|
|
|
const FACADE_LOCALE = 'facade_locale'; |
22
|
|
|
const FACADE_PROPEL = 'facade_propel'; |
23
|
|
|
const FACADE_PRICE = 'facade_price'; |
24
|
|
|
const QUERY_CONTAINER_PRODUCT_IMAGE = 'query_container_product_image'; |
25
|
|
|
const QUERY_CONTAINER_PRODUCT_CATEGORY = 'QUERY_CONTAINER_PRODUCT_CATEGORY'; |
26
|
|
|
const FILE_PLUGINS = 'file plugins'; |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* @param \Spryker\Zed\Kernel\Container $container |
30
|
|
|
* |
31
|
|
|
* @return \Spryker\Zed\Kernel\Container |
32
|
|
|
*/ |
33
|
|
|
public function provideBusinessLayerDependencies(Container $container) |
34
|
|
|
{ |
35
|
|
|
$container[static::FACADE_LOCALE] = function (Container $container) { |
36
|
|
|
return new EcondaToLocaleBridge($container->getLocator()->locale()->facade()); |
37
|
|
|
}; |
38
|
|
|
|
39
|
|
|
$container[self::FACADE_PROPEL] = function (Container $container) { |
40
|
|
|
return new EcondaToPropelBridge($container->getLocator()->propel()->facade()); |
41
|
|
|
}; |
42
|
|
|
|
43
|
|
|
$container[self::FACADE_PRICE] = function (Container $container) { |
44
|
|
|
return new EcondaToPriceBridge($container->getLocator()->price()->facade()); |
45
|
|
|
}; |
46
|
|
|
|
47
|
|
|
$container[self::QUERY_CONTAINER_PRODUCT_IMAGE] = function (Container $container) { |
48
|
|
|
return $container->getLocator()->productImage()->queryContainer(); |
49
|
|
|
}; |
50
|
|
|
|
51
|
|
|
$container[self::QUERY_CONTAINER_PRODUCT_CATEGORY] = function (Container $container) { |
52
|
|
|
return $container->getLocator()->productCategory()->queryContainer(); |
53
|
|
|
}; |
54
|
|
|
|
55
|
|
|
$container[self::FILE_PLUGINS] = function (Container $container) { |
|
|
|
|
56
|
|
|
return [ |
57
|
|
|
'products' => new ProductsPlugin(), |
58
|
|
|
'categories' => new CategoryPlugin(), |
59
|
|
|
]; |
60
|
|
|
}; |
61
|
|
|
|
62
|
|
|
return $container; |
63
|
|
|
} |
64
|
|
|
|
65
|
|
|
} |
66
|
|
|
|
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