comparison core/modules/update/src/Form/UpdateManagerInstall.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 129ea1e6d783
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
10 use Symfony\Component\DependencyInjection\ContainerInterface; 10 use Symfony\Component\DependencyInjection\ContainerInterface;
11 use Symfony\Component\HttpFoundation\Response; 11 use Symfony\Component\HttpFoundation\Response;
12 12
13 /** 13 /**
14 * Configure update settings for this site. 14 * Configure update settings for this site.
15 *
16 * @internal
15 */ 17 */
16 class UpdateManagerInstall extends FormBase { 18 class UpdateManagerInstall extends FormBase {
17 19
18 /** 20 /**
19 * The module handler. 21 * The module handler.
210 if ($updater->isInstalled()) { 212 if ($updater->isInstalled()) {
211 drupal_set_message($this->t('%project is already installed.', ['%project' => $project_title]), 'error'); 213 drupal_set_message($this->t('%project is already installed.', ['%project' => $project_title]), 'error');
212 return; 214 return;
213 } 215 }
214 216
215 $project_real_location = drupal_realpath($project_location); 217 $project_real_location = \Drupal::service('file_system')->realpath($project_location);
216 $arguments = [ 218 $arguments = [
217 'project' => $project, 219 'project' => $project,
218 'updater_name' => get_class($updater), 220 'updater_name' => get_class($updater),
219 'local_url' => $project_real_location, 221 'local_url' => $project_real_location,
220 ]; 222 ];