6 * Gets the app root from the kernel.
13 * @var \Drupal\Core\DrupalKernelInterface
15 protected $drupalKernel;
18 * Constructs an AppRootFactory instance.
20 * @param \Drupal\Core\DrupalKernelInterface $drupal_kernel
23 public function __construct(DrupalKernelInterface $drupal_kernel) {
24 $this->drupalKernel = $drupal_kernel;
32 public function get() {
33 return $this->drupalKernel->getAppRoot();