@@ -64,7 +64,10 @@ protected function execute(InputInterface $input, OutputInterface $output) {
64
64
65
65
// Drupal 8 only;
66
66
if ($ this ->getDrupalVersion () === 8 ) {
67
- $ commands [] = 'drupal update:execute ' ;
67
+ $ commands [] = 'drush cim -y ' ;
68
+ $ commands [] = 'drush cr ' ;
69
+ $ commands [] = 'drush updb -y ' ;
70
+ $ commands [] = 'drush cr ' ;
68
71
$ this ->addModuleEnableCommands ($ commands );
69
72
$ this ->addModuleDisableCommands ($ commands );
70
73
@@ -85,24 +88,6 @@ protected function execute(InputInterface $input, OutputInterface $output) {
85
88
throw new CommandException ($ shellProcess ->getOutput ());
86
89
}
87
90
88
- // We run config:import separately so that if there's no config and it
89
- // fails we can continue. Previously, we checked the config folder, but this
90
- // was a quick fix.
91
- if ($ this ->getDrupalVersion () === 8 ) {
92
- $ config_commands [] = sprintf ('cd %s ' , $ this ->shellPath ($ this ->getWebRoot ()));
93
- $ config_commands [] = 'drupal config:import ' ;
94
- $ config_commands [] = 'drupal cache:rebuild ' ;
95
- $ config_command = implode (' && ' , $ config_commands );
96
-
97
- $ this ->io ->commentBlock ($ config_command );
98
-
99
- try {
100
- $ shellProcess ->exec ($ config_command , TRUE );
101
- }
102
- catch (ProcessFailedException $ e ) {
103
- }
104
- }
105
-
106
91
}
107
92
108
93
/**
@@ -118,7 +103,7 @@ private function addModuleEnableCommands(&$commands) {
118
103
119
104
// Drupal 8 only;
120
105
if ($ this ->getDrupalVersion () === 8 ) {
121
- $ commands [] = sprintf ('drupal module:install %s ' , implode (', ' , $ this ->config ['modules ' ]['enable ' ]));
106
+ $ commands [] = sprintf ('drush en -y %s ' , implode (', ' , $ this ->config ['modules ' ]['enable ' ]));
122
107
}
123
108
}
124
109
}
@@ -137,7 +122,7 @@ private function addModuleDisableCommands(&$commands) {
137
122
138
123
// Drupal 8 only;
139
124
if ($ this ->getDrupalVersion () === 8 ) {
140
- $ commands [] = sprintf ('drupal module: uninstall %s ' , implode (', ' , $ this ->config ['modules ' ]['disable ' ]));
125
+ $ commands [] = sprintf ('drush pm- uninstall -y %s ' , implode (', ' , $ this ->config ['modules ' ]['disable ' ]));
141
126
}
142
127
}
143
128
}
0 commit comments