public DrupalKernel::preHandle(Request $request)
Helper method that does request related initialization.
\Symfony\Component\HttpFoundation\Request $request: The current request.
Overrides DrupalKernelInterface::preHandle
public function preHandle(Request $request) { $this->loadLegacyIncludes(); // Load all enabled modules. $this->container->get('module_handler')->loadAll(); // Register stream wrappers. $this->container->get('stream_wrapper_manager')->register(); // Initialize legacy request globals. $this->initializeRequestGlobals($request); // Put the request on the stack. $this->container->get('request_stack')->push($request); // Set the allowed protocols. UrlHelper::setAllowedProtocols($this->container->getParameter('filter_protocols')); // Override of Symfony's MIME type guesser singleton. MimeTypeGuesser::registerWithSymfonyGuesser($this->container); $this->prepared = TRUE; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!DrupalKernel.php/function/DrupalKernel::preHandle/8.1.x