original_string: private function finishRequest(Request $request, int $type)
      {
          $this->dispatcher->dispatch(new FinishRequestEvent($this, $request, $type), KernelEvents::FINISH_REQUEST);
          $this->requestStack->pop();
      }
code: private function finishRequest(Request $request, int $type)
      {
          $this->dispatcher->dispatch(new FinishRequestEvent($this, $request, $type), KernelEvents::FINISH_REQUEST);
          $this->requestStack->pop();
      }
code_tokens: private function finishRequest ( Request $ request , int $ type ) { $ this -> dispatcher -> dispatch ( new FinishRequestEvent ( $ this , $ request , $ type ) , KernelEvents :: FINISH_REQUEST ) ; $ this -> requestStack -> pop ( ) ; }
docstring: Publishes the finish request event, then pop the request from the stack.
  
  Note that the order of the operations is important here, otherwise
  operations such as {@link RequestStack::getParentRequest()} can lead to
  weird results.
docstring_tokens: Publishes the finish request event then pop the request from the stack .