diff --git a/core/lib/Drupal/Core/AppRootFactory.php b/core/lib/Drupal/Core/AppRootFactory.php deleted file mode 100644 index 892492380e046ba19fd8d65a467e2b78d80d4cf4..0000000000000000000000000000000000000000 --- a/core/lib/Drupal/Core/AppRootFactory.php +++ /dev/null @@ -1,37 +0,0 @@ -<?php - -namespace Drupal\Core; - -/** - * Gets the app root from the kernel. - */ -class AppRootFactory { - - /** - * The Drupal kernel. - * - * @var \Drupal\Core\DrupalKernelInterface - */ - protected $drupalKernel; - - /** - * Constructs an AppRootFactory instance. - * - * @param \Drupal\Core\DrupalKernelInterface $drupal_kernel - * The Drupal kernel. - */ - public function __construct(DrupalKernelInterface $drupal_kernel) { - $this->drupalKernel = $drupal_kernel; - } - - /** - * Gets the app root. - * - * @return string - * The app root. - */ - public function get() { - return $this->drupalKernel->getContainer()->getParameter('app.root'); - } - -} diff --git a/core/lib/Drupal/Core/SitePathFactory.php b/core/lib/Drupal/Core/SitePathFactory.php deleted file mode 100644 index e83daf25a080fb5d36c407140ac010b6882f99bd..0000000000000000000000000000000000000000 --- a/core/lib/Drupal/Core/SitePathFactory.php +++ /dev/null @@ -1,37 +0,0 @@ -<?php - -namespace Drupal\Core; - -/** - * Gets the site path from the kernel. - */ -class SitePathFactory { - - /** - * The Drupal kernel. - * - * @var \Drupal\Core\DrupalKernelInterface - */ - protected $drupalKernel; - - /** - * Constructs a SitePathFactory instance. - * - * @param \Drupal\Core\DrupalKernelInterface $drupal_kernel - * The Drupal kernel. - */ - public function __construct(DrupalKernelInterface $drupal_kernel) { - $this->drupalKernel = $drupal_kernel; - } - - /** - * Gets the site path. - * - * @return string - * The site path. - */ - public function get() { - return $this->drupalKernel->getContainer()->getParameter('site.path'); - } - -}