From da3b4f30a9a697cc091d945fd0018571b3b0555a Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Sun, 10 Oct 2021 19:09:40 -0400 Subject: [PATCH] deprecated service --- setup/src/Setup/DrupalUtil.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/src/Setup/DrupalUtil.php b/setup/src/Setup/DrupalUtil.php index d16717dc2e..20afedcfed 100644 --- a/setup/src/Setup/DrupalUtil.php +++ b/setup/src/Setup/DrupalUtil.php @@ -20,7 +20,7 @@ class DrupalUtil { return basename(conf_path()); } elseif (class_exists('Drupal')) { - return \Drupal::service('site.path'); + return \Drupal::getContainer()->getParameter('site.path'); } else { throw new \Exception('Cannot detect path under Drupal "sites/".'); -- 2.25.1