Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. VirtualRequestStack.php

function VirtualRequestStack::push

Overrides RequestStack::push

File

vendor/symfony/http-kernel/Debug/VirtualRequestStack.php, line 31

Class

VirtualRequestStack
A stack able to deal with virtual requests.

Namespace

Symfony\Component\HttpKernel\Debug

Code

public function push(Request $request) : void {
    if ($request->attributes
        ->has('_virtual_type')) {
        if ($this->decorated
            ->getCurrentRequest()) {
            throw new \LogicException('Cannot mix virtual and HTTP requests.');
        }
        parent::push($request);
        return;
    }
    $this->decorated
        ->push($request);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal