@@ -23,16 +23,6 @@ class ApplicationDumpCommand extends Command
23
23
{
24
24
const INPUT_CONFIG_TYPES = 'config-types ' ;
25
25
26
- /**
27
- * @var array
28
- */
29
- private $ configTypes = [
30
- \Magento \Store \App \Config \Type \Scopes::CONFIG_TYPE ,
31
- \Magento \Deploy \Source \Themes::TYPE ,
32
- \Magento \Translation \App \Config \Type \Translation::CONFIG_TYPE ,
33
- \Magento \Config \App \Config \Type \System::CONFIG_TYPE ,
34
- ];
35
-
36
26
/**
37
27
* @var Writer
38
28
*/
@@ -60,10 +50,10 @@ public function __construct(
60
50
array $ sources ,
61
51
Hash $ configHash = null
62
52
) {
63
- parent ::__construct ();
64
53
$ this ->writer = $ writer ;
65
54
$ this ->sources = $ sources ;
66
55
$ this ->configHash = $ configHash ?: ObjectManager::getInstance ()->get (Hash::class);
56
+ parent ::__construct ();
67
57
}
68
58
69
59
/**
@@ -73,10 +63,12 @@ protected function configure()
73
63
{
74
64
$ this ->setName ('app:config:dump ' );
75
65
$ this ->setDescription ('Create dump of application ' );
66
+
67
+ $ configTypes = array_unique (array_column ($ this ->sources , 'namespace ' ));
76
68
$ this ->addArgument (
77
69
self ::INPUT_CONFIG_TYPES ,
78
70
InputArgument::OPTIONAL | InputArgument::IS_ARRAY ,
79
- sprintf ('Space-separated list of config types or omit to dump all [%s] ' , implode (', ' , $ this -> configTypes ))
71
+ sprintf ('Space-separated list of config types or omit to dump all [%s] ' , implode (', ' , $ configTypes ))
80
72
);
81
73
parent ::configure ();
82
74
}
0 commit comments