DrupalKernel::updateModules

public DrupalKernel::updateModules(array $module_list, array $module_filenames = array()) Implements Drupal\Core\DrupalKernelInterface::updateModules(). @todo Remove obsolete $module_list parameter. Only $module_filenames is needed. Overrides DrupalKernelInterface::updateModules File core/lib/Drupal/Core/DrupalKernel.php, line 759 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code public function updateModules(array $module_list, array $m

DrupalKernel::terminate

public DrupalKernel::terminate(Request $request, Response $response) Terminates a request/response cycle. Should be called after sending the response and before shutting down the kernel. Parameters Request $request A Request instance: Response $response A Response instance: Overrides TerminableInterface::terminate File core/lib/Drupal/Core/DrupalKernel.php, line 622 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code public function termi

DrupalKernel::shutdown

public DrupalKernel::shutdown() Shuts down the kernel. Overrides DrupalKernelInterface::shutdown File core/lib/Drupal/Core/DrupalKernel.php, line 471 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code public function shutdown() { if (FALSE === $this->booted) { return; } $this->container->get('stream_wrapper_manager')->unregister(); $this->booted = FALSE; $this->container = NULL; $this->moduleList = NUL

DrupalKernel::setupTrustedHosts

protected static DrupalKernel::setupTrustedHosts(Request $request, $host_patterns) Sets up the lists of trusted HTTP Host headers. Since the HTTP Host header can be set by the user making the request, it is possible to create an attack vectors against a site by overriding this. Symfony provides a mechanism for creating a list of trusted Host values. Host patterns (as regular expressions) can be configured through settings.php for multisite installations, sites using ServerAlias without canonica

DrupalKernel::setSitePath

public DrupalKernel::setSitePath($path) Set the current site path. Parameters string $path: The current site path. Throws \LogicException In case the kernel is already booted. Overrides DrupalKernelInterface::setSitePath File core/lib/Drupal/Core/DrupalKernel.php, line 408 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code public function setSitePath($path) { if ($this->booted) { throw new \LogicException('Site path cannot be c

DrupalKernel::setContainer

public DrupalKernel::setContainer(ContainerInterface $container = NULL) Sets the container. Parameters ContainerInterface|null $container A ContainerInterface instance or null: Overrides ContainerAwareInterface::setContainer File core/lib/Drupal/Core/DrupalKernel.php, line 492 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code public function setContainer(ContainerInterface $container = NULL) { if (isset($this->container)) { thr

DrupalKernel::rebuildContainer

public DrupalKernel::rebuildContainer() Force a container rebuild. Return value \Symfony\Component\DependencyInjection\ContainerInterface Overrides DrupalKernelInterface::rebuildContainer File core/lib/Drupal/Core/DrupalKernel.php, line 1109 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code public function rebuildContainer() { // Empty module properties and for them to be reloaded from scratch. $this->moduleList = NULL; $this-&

DrupalKernel::prepareLegacyRequest

public DrupalKernel::prepareLegacyRequest(Request $request) Prepare the kernel for handling a request without handling the request. Parameters \Symfony\Component\HttpFoundation\Request $request: The current request. Return value $this Overrides DrupalKernelInterface::prepareLegacyRequest Deprecated in Drupal 8.0.x and will be removed before 9.0.0. Only used by legacy front-controller scripts. File core/lib/Drupal/Core/DrupalKernel.php, line 700 Class DrupalKernel The DrupalKernel clas

DrupalKernel::preHandle

public DrupalKernel::preHandle(Request $request) Helper method that does request related initialization. Parameters \Symfony\Component\HttpFoundation\Request $request: The current request. Overrides DrupalKernelInterface::preHandle File core/lib/Drupal/Core/DrupalKernel.php, line 539 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code public function preHandle(Request $request) { $this->loadLegacyIncludes(); // Load all enabled m

DrupalKernel::persistServices

protected DrupalKernel::persistServices(ContainerInterface $container, array $persist) Moves persistent service instances into a new container. File core/lib/Drupal/Core/DrupalKernel.php, line 1096 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code protected function persistServices(ContainerInterface $container, array $persist) { foreach ($persist as $id => $object) { // Do not override services already set() on the new containe