Mercurial > hg > isophonics-drupal-site
comparison core/modules/update/src/Form/UpdateReady.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
11 use Symfony\Component\DependencyInjection\ContainerInterface; | 11 use Symfony\Component\DependencyInjection\ContainerInterface; |
12 use Symfony\Component\HttpFoundation\Response; | 12 use Symfony\Component\HttpFoundation\Response; |
13 | 13 |
14 /** | 14 /** |
15 * Configure update settings for this site. | 15 * Configure update settings for this site. |
16 * | |
17 * @internal | |
16 */ | 18 */ |
17 class UpdateReady extends FormBase { | 19 class UpdateReady extends FormBase { |
18 | 20 |
19 /** | 21 /** |
20 * The root location under which updated projects will be saved. | 22 * The root location under which updated projects will be saved. |
134 | 136 |
135 $project_real_location = NULL; | 137 $project_real_location = NULL; |
136 foreach ($projects as $project => $url) { | 138 foreach ($projects as $project => $url) { |
137 $project_location = $directory . '/' . $project; | 139 $project_location = $directory . '/' . $project; |
138 $updater = Updater::factory($project_location, $this->root); | 140 $updater = Updater::factory($project_location, $this->root); |
139 $project_real_location = drupal_realpath($project_location); | 141 $project_real_location = \Drupal::service('file_system')->realpath($project_location); |
140 $updates[] = [ | 142 $updates[] = [ |
141 'project' => $project, | 143 'project' => $project, |
142 'updater_name' => get_class($updater), | 144 'updater_name' => get_class($updater), |
143 'local_url' => $project_real_location, | 145 'local_url' => $project_real_location, |
144 ]; | 146 ]; |