1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* TechDivision\Import\Cli\Utils\MagentoConfigurationKeys |
5
|
|
|
* |
6
|
|
|
* PHP version 7 |
7
|
|
|
* |
8
|
|
|
* @author Tim Wagner <[email protected]> |
9
|
|
|
* @copyright 2016 TechDivision GmbH <[email protected]> |
10
|
|
|
* @license https://opensource.org/licenses/MIT |
11
|
|
|
* @link https://github.com/techdivision/import-cli-simple |
12
|
|
|
* @link http://www.techdivision.com |
13
|
|
|
*/ |
14
|
|
|
|
15
|
|
|
namespace TechDivision\Import\Cli\Utils; |
16
|
|
|
|
17
|
|
|
/** |
18
|
|
|
* Utility class containing the necessary Magento configuration keys. |
19
|
|
|
* |
20
|
|
|
* @author Tim Wagner <[email protected]> |
21
|
|
|
* @copyright 2016 TechDivision GmbH <[email protected]> |
22
|
|
|
* @license https://opensource.org/licenses/MIT |
23
|
|
|
* @link https://github.com/techdivision/import-cli-simple |
24
|
|
|
* @link http://www.techdivision.com |
25
|
|
|
*/ |
26
|
|
|
class MagentoConfigurationKeys |
27
|
|
|
{ |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* This is a utility class, so protect it against direct |
31
|
|
|
* instantiation. |
32
|
|
|
*/ |
33
|
|
|
private function __construct() |
34
|
|
|
{ |
35
|
|
|
} |
36
|
|
|
|
37
|
|
|
/** |
38
|
|
|
* This is a utility class, so protect it against cloning. |
39
|
|
|
* |
40
|
|
|
* @return void |
41
|
|
|
*/ |
42
|
|
|
private function __clone() |
43
|
|
|
{ |
44
|
|
|
} |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* The key for the DB environment in the app/etc/env.php file. |
48
|
|
|
* |
49
|
|
|
* @var string |
50
|
|
|
*/ |
51
|
|
|
const DB = 'db'; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* The key for the DB connection in the app/etc/env.php file. |
55
|
|
|
* |
56
|
|
|
* @var string |
57
|
|
|
*/ |
58
|
|
|
const CONNECTION = 'connection'; |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* The key for the DB host in the app/etc/env.php file. |
62
|
|
|
* |
63
|
|
|
* @var string |
64
|
|
|
*/ |
65
|
|
|
const HOST = 'host'; |
66
|
|
|
|
67
|
|
|
/** |
68
|
|
|
* The key for the DB port in the app/etc/env.php file. |
69
|
|
|
* |
70
|
|
|
* @var string |
71
|
|
|
*/ |
72
|
|
|
const PORT = 'port'; |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* The key for the DB name in the app/etc/env.php file. |
76
|
|
|
* |
77
|
|
|
* @var string |
78
|
|
|
*/ |
79
|
|
|
const DBNAME = 'dbname'; |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* The key for the DB username in the app/etc/env.php file. |
83
|
|
|
* |
84
|
|
|
* @var string |
85
|
|
|
*/ |
86
|
|
|
const USERNAME = 'username'; |
87
|
|
|
|
88
|
|
|
/** |
89
|
|
|
* The key for the DB password in the app/etc/env.php file. |
90
|
|
|
* |
91
|
|
|
* @var string |
92
|
|
|
*/ |
93
|
|
|
const PASSWORD = 'password'; |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* The attribute with packages in the composer.json file. |
97
|
|
|
* |
98
|
|
|
* @var string |
99
|
|
|
*/ |
100
|
|
|
const COMPOSER_PACKAGES = 'packages'; |
101
|
|
|
|
102
|
|
|
/** |
103
|
|
|
* The attribute with the Magento Edition name in the composer.json file. |
104
|
|
|
* |
105
|
|
|
* @var string |
106
|
|
|
*/ |
107
|
|
|
const COMPOSER_EDITION_NAME_ATTRIBUTE = 'name'; |
108
|
|
|
|
109
|
|
|
/** |
110
|
|
|
* The attribute with the Magento Edition version in the composer.json file. |
111
|
|
|
* |
112
|
|
|
* @var string |
113
|
|
|
*/ |
114
|
|
|
const COMPOSER_EDITION_VERSION_ATTRIBUTE = 'version'; |
115
|
|
|
|
116
|
|
|
/** |
117
|
|
|
* The key for the DB table prefix in the app/etc/env.php file. |
118
|
|
|
* |
119
|
|
|
* @var string |
120
|
|
|
*/ |
121
|
|
|
const TABLE_PREFIX = 'table_prefix'; |
122
|
|
|
} |
123
|
|
|
|