1
1
<?php
2
+
2
3
/**
3
4
* Copyright © Magento, Inc. All rights reserved.
4
5
* See COPYING.txt for license details.
5
6
*/
7
+
6
8
namespace Magento \Setup \Console \Command ;
7
9
8
10
use Magento \Deploy \Console \Command \App \ConfigImportCommand ;
@@ -31,7 +33,7 @@ class UpgradeCommand extends AbstractSetupCommand
31
33
/**
32
34
* Option to skip deletion of generated/code directory.
33
35
*/
34
- const INPUT_KEY_KEEP_GENERATED = 'keep-generated ' ;
36
+ public const INPUT_KEY_KEEP_GENERATED = 'keep-generated ' ;
35
37
36
38
/**
37
39
* Installer service factory.
@@ -55,7 +57,7 @@ class UpgradeCommand extends AbstractSetupCommand
55
57
*/
56
58
private $ searchConfigFactory ;
57
59
58
- /*
60
+ /**
59
61
* @var CacheInterface
60
62
*/
61
63
private $ cache ;
@@ -142,8 +144,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
142
144
$ searchConfig = $ this ->searchConfigFactory ->create ();
143
145
$ this ->cache ->clean ();
144
146
$ searchConfig ->validateSearchEngine ();
145
- $ installer ->removeUnusedTriggers ();
146
147
$ installer ->installSchema ($ request );
148
+ $ installer ->removeUnusedTriggers ();
147
149
$ installer ->installDataFixtures ($ request , true );
148
150
149
151
if ($ this ->deploymentConfig ->isAvailable ()) {
@@ -163,6 +165,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
163
165
'<info>Please re-run Magento compile command. Use the command "setup:di:compile"</info> '
164
166
);
165
167
}
168
+
166
169
$ output ->writeln (
167
170
"<info>Media files stored outside of 'Media Gallery Allowed' folders "
168
171
. " will not be available to the media gallery.</info> "
0 commit comments