1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* TechDivision\Import\App\Magento |
5
|
|
|
* |
6
|
|
|
* NOTICE OF LICENSE |
7
|
|
|
* |
8
|
|
|
* This source file is subject to the Open Software License (OSL 3.0) |
9
|
|
|
* that is available through the world-wide-web at this URL: |
10
|
|
|
* http://opensource.org/licenses/osl-3.0.php |
11
|
|
|
* |
12
|
|
|
* PHP version 5 |
13
|
|
|
* |
14
|
|
|
* @author Tim Wagner <[email protected]> |
15
|
|
|
* @copyright 2016 TechDivision GmbH <[email protected]> |
16
|
|
|
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
17
|
|
|
* @link https://github.com/techdivision/import-app-simple |
18
|
|
|
* @link http://www.techdivision.com |
19
|
|
|
*/ |
20
|
|
|
|
21
|
|
|
namespace TechDivision\Import\App; |
22
|
|
|
|
23
|
|
|
use Magento\Framework\ObjectManagerInterface; |
24
|
|
|
use TechDivision\Import\App\Simple; |
25
|
|
|
use TechDivision\Import\ConfigurationInterface; |
26
|
|
|
use TechDivision\Import\Services\ImportProcessorInterface; |
27
|
|
|
use TechDivision\Import\Services\RegistryProcessorInterface; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* The M2IF - Magento Application implementation. |
31
|
|
|
* |
32
|
|
|
* @author Tim Wagner <[email protected]> |
33
|
|
|
* @copyright 2016 TechDivision GmbH <[email protected]> |
34
|
|
|
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
35
|
|
|
* @link https://github.com/techdivision/import-app-simple |
36
|
|
|
* @link http://www.techdivision.com |
37
|
|
|
*/ |
38
|
|
|
class Magento extends Simple |
39
|
|
|
{ |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* The Magento object manager. |
43
|
|
|
* |
44
|
|
|
* @var \Magento\Framework\ObjectManagerInterface |
45
|
|
|
*/ |
46
|
|
|
protected $container; |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* The constructor to initialize the instance. |
50
|
|
|
* |
51
|
|
|
* @param \Magento\Framework\ObjectManagerInterface $container The DI container instance |
52
|
|
|
* @param \TechDivision\Import\Services\RegistryProcessorInterface $registryProcessor The registry processor instance |
53
|
|
|
* @param \TechDivision\Import\Services\ImportProcessorInterface $importProcessor The import processor instance |
54
|
|
|
* @param \TechDivision\Import\ConfigurationInterface $configuration The system configuration |
55
|
|
|
* @param \Symfony\Component\Console\Output\OutputInterface $output An OutputInterface instance |
56
|
|
|
* @param array $systemLoggers The array with the system logger instances |
57
|
|
|
*/ |
58
|
|
|
public function __construct( |
59
|
|
|
ObjectManagerInterface $container, |
60
|
|
|
RegistryProcessorInterface $registryProcessor, |
61
|
|
|
ImportProcessorInterface $importProcessor, |
62
|
|
|
ConfigurationInterface $configuration, |
63
|
|
|
OutputInterface $output, |
64
|
|
|
array $systemLoggers |
65
|
|
|
) { |
66
|
|
|
|
67
|
|
|
// register the shutdown function |
68
|
|
|
register_shutdown_function(array($this, 'shutdown')); |
69
|
|
|
|
70
|
|
|
// initialize the instance with the passed values |
71
|
|
|
$this->output = $output; |
|
|
|
|
72
|
|
|
$this->container = $container; |
73
|
|
|
$this->configuration = $configuration; |
74
|
|
|
$this->systemLoggers = $systemLoggers; |
75
|
|
|
$this->importProcessor = $importProcessor; |
76
|
|
|
$this->registryProcessor = $registryProcessor; |
77
|
|
|
} |
78
|
|
|
} |
79
|
|
|
|
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..