@@ -64,7 +64,7 @@ protected function execute(InputInterface $input, OutputInterface $output) {
6464
6565 // Drupal 8 only;
6666 if ($ this ->getDrupalVersion () === 8 ) {
67- $ commands [] = 'drupal update:execute ' ;
67+ $ commands [] = 'drush updb -y ' ;
6868 $ this ->addModuleEnableCommands ($ commands );
6969 $ this ->addModuleDisableCommands ($ commands );
7070
@@ -90,8 +90,8 @@ protected function execute(InputInterface $input, OutputInterface $output) {
9090 // was a quick fix.
9191 if ($ this ->getDrupalVersion () === 8 ) {
9292 $ config_commands [] = sprintf ('cd %s ' , $ this ->shellPath ($ this ->getWebRoot ()));
93- $ config_commands [] = 'drupal config:import ' ;
94- $ config_commands [] = 'drupal cache:rebuild ' ;
93+ $ config_commands [] = 'drush cim -y ' ;
94+ $ config_commands [] = 'drush cr ' ;
9595 $ config_command = implode (' && ' , $ config_commands );
9696
9797 $ this ->io ->commentBlock ($ config_command );
@@ -118,7 +118,7 @@ private function addModuleEnableCommands(&$commands) {
118118
119119 // Drupal 8 only;
120120 if ($ this ->getDrupalVersion () === 8 ) {
121- $ commands [] = sprintf ('drupal module:install %s ' , implode (', ' , $ this ->config ['modules ' ]['enable ' ]));
121+ $ commands [] = sprintf ('drupal en -y %s ' , implode (', ' , $ this ->config ['modules ' ]['enable ' ]));
122122 }
123123 }
124124 }
@@ -137,7 +137,7 @@ private function addModuleDisableCommands(&$commands) {
137137
138138 // Drupal 8 only;
139139 if ($ this ->getDrupalVersion () === 8 ) {
140- $ commands [] = sprintf ('drupal module: uninstall %s ' , implode (', ' , $ this ->config ['modules ' ]['disable ' ]));
140+ $ commands [] = sprintf ('drush pm- uninstall -y %s ' , implode (', ' , $ this ->config ['modules ' ]['disable ' ]));
141141 }
142142 }
143143 }
0 commit comments