diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc index b683347..214ce28 100644 --- a/core/includes/install.core.inc +++ b/core/includes/install.core.inc @@ -2010,28 +2010,6 @@ function install_check_requirements($install_state) { ); } } - - // Check that the services.yml file is read and writable. - $yml_file = $conf_path . '/services.yml'; - $readable = drupal_verify_install_file($yml_file, FILE_READABLE); - $writable = drupal_verify_install_file($yml_file, FILE_WRITABLE); - - if (!$readable) { - $requirements['services file readable'] = array( - 'title' => t('Services file'), - 'value' => t('The services.yml file is not readable.'), - 'severity' => REQUIREMENT_ERROR, - 'description' => t('@drupal requires read permissions to %file at all times. If you are unsure how to grant file permissions, consult the online handbook.', array('@drupal' => drupal_install_profile_distribution_name(), '%file' => $yml_file, '@handbook_url' => 'http://drupal.org/server-permissions')), - ); - } - if (!$writable) { - $requirements['service file writable'] = array( - 'title' => t('Services file'), - 'value' => t('The service.yml file is not writable.'), - 'severity' => REQUIREMENT_ERROR, - 'description' => t('The @drupal installer requires write permissions to %file during the installation process. If you are unsure how to grant file permissions, consult the online handbook.', array('@drupal' => drupal_install_profile_distribution_name(), '%file' => $yml_file, '@handbook_url' => 'http://drupal.org/server-permissions')), - ); - } } return $requirements; } diff --git a/core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php b/core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php index c233392..241daec 100644 --- a/core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php +++ b/core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php @@ -157,12 +157,6 @@ public function submitForm(array &$form, array &$form_state) { drupal_rewrite_settings($settings); - $conf_path = './' . conf_path(FALSE); - $services_file = $conf_path . '/services.yml'; - // @TODO Should we put some logic in here to ensure that the file is read - // and writable? - file_put_contents($services_file, Yaml::encode(array('parameters' => array('default_backend' => $database['driver'])))); - // Add the config directories to settings.php. drupal_install_config_directories(); diff --git a/core/modules/system/src/Tests/Installer/InstallerTest.php b/core/modules/system/src/Tests/Installer/InstallerTest.php index ab5b358..760a942 100644 --- a/core/modules/system/src/Tests/Installer/InstallerTest.php +++ b/core/modules/system/src/Tests/Installer/InstallerTest.php @@ -30,9 +30,6 @@ public function testInstaller() { $this->assertRaw(t('Congratulations, you installed @drupal!', array( '@drupal' => drupal_install_profile_distribution_name(), ))); - - // Ensures that the services YML file got written and read. - $this->assertEqual(\Drupal::getContainer()->getParameter('default_backend'), \Drupal::database()->driver()); } }