DrupalKernelInterface::getServiceProviders

public DrupalKernelInterface::getServiceProviders($origin) Returns all registered service providers. Parameters string $origin: The origin for which to return service providers; one of 'app' or 'site'. Return value array An associative array of ServiceProvider objects, keyed by name. File core/lib/Drupal/Core/DrupalKernelInterface.php, line 46 Class DrupalKernelInterface The interface for DrupalKernel, the core of Drupal. Namespace Drupal\Core Code public function getServiceProviders

DrupalKernelInterface::getContainer

public DrupalKernelInterface::getContainer() Gets the current container. Return value \Symfony\Component\DependencyInjection\ContainerInterface A ContainerInterface instance. File core/lib/Drupal/Core/DrupalKernelInterface.php, line 54 Class DrupalKernelInterface The interface for DrupalKernel, the core of Drupal. Namespace Drupal\Core Code public function getContainer();

DrupalKernelInterface::getCachedContainerDefinition

public DrupalKernelInterface::getCachedContainerDefinition() Returns the cached container definition - if any. This also allows inspecting a built container for debugging purposes. Return value array|null The cached container definition or NULL if not found in cache. File core/lib/Drupal/Core/DrupalKernelInterface.php, line 64 Class DrupalKernelInterface The interface for DrupalKernel, the core of Drupal. Namespace Drupal\Core Code public function getCachedContainerDefinition();

DrupalKernelInterface::getAppRoot

public DrupalKernelInterface::getAppRoot() Gets the app root. Return value string File core/lib/Drupal/Core/DrupalKernelInterface.php, line 90 Class DrupalKernelInterface The interface for DrupalKernel, the core of Drupal. Namespace Drupal\Core Code public function getAppRoot();

DrupalKernelInterface::discoverServiceProviders

public DrupalKernelInterface::discoverServiceProviders() Discovers available serviceProviders. Return value array The available serviceProviders. File core/lib/Drupal/Core/DrupalKernelInterface.php, line 35 Class DrupalKernelInterface The interface for DrupalKernel, the core of Drupal. Namespace Drupal\Core Code public function discoverServiceProviders();

DrupalKernelInterface::boot

public DrupalKernelInterface::boot() Boots the current kernel. Return value $this File core/lib/Drupal/Core/DrupalKernelInterface.php, line 22 Class DrupalKernelInterface The interface for DrupalKernel, the core of Drupal. Namespace Drupal\Core Code public function boot();

DrupalKernelInterface

The interface for DrupalKernel, the core of Drupal. This interface extends Symfony's KernelInterface and adds methods for responding to modules being enabled or disabled during its lifetime. Hierarchy interface \Symfony\Component\HttpKernel\HttpKernelInterface; interface \Symfony\Component\DependencyInjection\ContainerAwareInterfaceinterface \Drupal\Core\DrupalKernelInterface File core/lib/Drupal/Core/DrupalKernelInterface.php, line 15 Namespace Drupal\Core Members Name Modifiers

DrupalKernel::__construct

public DrupalKernel::__construct($environment, $class_loader, $allow_dumping = TRUE, $app_root = NULL) Constructs a DrupalKernel object. Parameters string $environment: String indicating the environment, e.g. 'prod' or 'dev'. $class_loader: The class loader. Normally \Composer\Autoload\ClassLoader, as included by the front controller, but may also be decorated; e.g., \Symfony\Component\ClassLoader\ApcClassLoader. bool $allow_dumping: (optional) FALSE to stop the container from being written to

DrupalKernel::validateHostnameLength

protected static DrupalKernel::validateHostnameLength($host) Validates a hostname length. Parameters string $host: A hostname. Return value bool TRUE if the length is appropriate, or FALSE otherwise. File core/lib/Drupal/Core/DrupalKernel.php, line 1435 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code protected static function validateHostnameLength($host) { // Limit the length of the host name to 1000 bytes to prevent DoS attacks

DrupalKernel::validateHostname

public static DrupalKernel::validateHostname(Request $request) Validates the hostname supplied from the HTTP request. Parameters \Symfony\Component\HttpFoundation\Request $request: The request object Return value bool TRUE if the hostname is valid, or FALSE otherwise. File core/lib/Drupal/Core/DrupalKernel.php, line 1454 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code public static function validateHostname(Request $request) { // $