public function AppRootFactory::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/AppRootFactory.php \Drupal\Core\AppRootFactory::__construct()
Constructs an AppRootFactory instance.
Parameters
\Drupal\Core\DrupalKernelInterface $drupal_kernel: The Drupal kernel.
File
- core/
lib/ Drupal/ Core/ AppRootFactory.php, line 28 - Contains \Drupal\Core\AppRootFactory.
Class
- AppRootFactory
- Gets the app root from the kernel.
Namespace
Drupal\CoreCode
public function __construct(DrupalKernelInterface $drupal_kernel) {
$this->drupalKernel = $drupal_kernel;
}