@@ -120,13 +120,13 @@ public function __construct($settings_dir) {
120120 */
121121 public function getConfiguration () : array {
122122 $ conf = [
123- 'config ' => ( array ) $ this ->config ,
124- 'databases ' => ( array ) $ this ->databases ,
125- 'settings ' => ( array ) $ this ->settings ,
123+ 'config ' => $ this ->config ,
124+ 'databases ' => $ this ->databases ,
125+ 'settings ' => $ this ->settings ,
126126 ];
127127
128128 if (!empty ($ this ->config_directories )) {
129- $ conf ['config_directories ' ] = ( array ) $ this ->config_directories ;
129+ $ conf ['config_directories ' ] = $ this ->config_directories ;
130130 }
131131
132132 if (getenv ('OMEN_TOKEN ' ) && isset ($ _GET ['_show_omens ' ])) {
@@ -142,8 +142,7 @@ public function getConfiguration() : array {
142142 * Print out configuration.
143143 */
144144 public function showConfiguration () {
145- $ conf = $ this ->getConfiguration ();
146- $ this ->printConfiguration ($ conf );
145+ $ this ->printConfiguration ($ this ->getConfiguration ());
147146 }
148147
149148 protected function printConfiguration ($ conf ) {
@@ -184,14 +183,7 @@ private function setEnvDefaults() {
184183 * Set global values. Same for all environments.
185184 */
186185 private function setGlobalDefaults () {
187- $ older_than_88 = version_compare ($ this ->drupal_version , '8.8.0 ' , '< ' );
188-
189186 // Set directory for loading CMI configuration.
190- if ($ older_than_88 ) {
191- $ this ->config_directories ['sync ' ] = '../ ' . self ::CMI_PATH ;
192- }
193-
194- // In Drupal 8.8 this is in $settings array.
195187 $ this ->settings ['config_sync_directory ' ] = '../ ' . self ::CMI_PATH ;
196188
197189 // Hash salt.
@@ -206,14 +198,8 @@ private function setGlobalDefaults() {
206198 // Temp path.
207199 $ this ->settings ['file_temp_path ' ] = getenv ('DRUPAL_TMP_PATH ' ) ?: $ this ->settings ['file_temp_path ' ] ?? '/tmp ' ;
208200
209- if ($ older_than_88 ) {
210- $ this ->config ['system.file ' ]['path ' ]['temporary ' ] = $ this ->settings ['file_temp_path ' ];
211- }
212-
213- // Exclude these modules from configuration export if Drupal 8.8+.
214- if (!$ older_than_88 ) {
215- $ this ->settings ['config_exclude_modules ' ] = ['devel ' , 'stage_file_proxy ' ];
216- }
201+ // Exclude these modules from configuration export.
202+ $ this ->settings ['config_exclude_modules ' ] = ['devel ' , 'stage_file_proxy ' , 'upgrade_status ' ];
217203 }
218204
219205 /**
0 commit comments