initializeRequestGlobals example



    $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'));

    $this->prepared = TRUE;
  }

  /** * {@inheritdoc} */
Home | Imprint | This part of the site doesn't use cookies.