1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* TechDivision\Import\Product\TierPrice\DependencyInjection\ImportExtension |
5
|
|
|
* |
6
|
|
|
* PHP version 7 |
7
|
|
|
* |
8
|
|
|
* @author Klaas-Tido Rühl <[email protected]> |
9
|
|
|
* @author Tim Wagner <[email protected]> |
10
|
|
|
* @copyright 2019 REFUSiON GmbH <[email protected]> |
11
|
|
|
* @license https://opensource.org/licenses/MIT |
12
|
|
|
* @link https://github.com/techdivision/import-product-tier-price |
13
|
|
|
* @link https://www.techdivision.com |
14
|
|
|
* @link https://www.refusion.com |
15
|
|
|
*/ |
16
|
|
|
|
17
|
|
|
namespace TechDivision\Import\Product\TierPrice\DependencyInjection; |
18
|
|
|
|
19
|
|
|
use Symfony\Component\Config\FileLocator; |
20
|
|
|
use Symfony\Component\HttpKernel\DependencyInjection\Extension; |
21
|
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder; |
22
|
|
|
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* The symfony extension implementation for the M2IF import product library. |
26
|
|
|
* |
27
|
|
|
* @author Klaas-Tido Rühl <[email protected]> |
28
|
|
|
* @author Tim Wagner <[email protected]> |
29
|
|
|
* @copyright 2019 REFUSiON GmbH <[email protected]> |
30
|
|
|
* @license https://opensource.org/licenses/MIT |
31
|
|
|
* @link https://github.com/techdivision/import-product-tier-price |
32
|
|
|
* @link https://www.techdivision.com |
33
|
|
|
* @link https://www.refusion.com |
34
|
|
|
*/ |
35
|
|
|
class ImportExtension extends Extension |
36
|
|
|
{ |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* Load's the bundles DI configuration. |
40
|
|
|
* |
41
|
|
|
* @param array $configs The array with the configuration |
42
|
|
|
* @param \Symfony\Component\DependencyInjection\ContainerBuilder $container The container instance |
43
|
|
|
*/ |
44
|
|
|
public function load(array $configs, ContainerBuilder $container) |
45
|
|
|
{ |
46
|
|
|
$loader = new XmlFileLoader($container, new FileLocator(dirname(__DIR__) . '/Resources/config')); |
47
|
|
|
$loader->load('services.xml'); |
48
|
|
|
} |
49
|
|
|
} |
50
|
|
|
|