original_string: public function getSession()
      {
          if (null === $this->requestStack) {
              throw new \RuntimeException('The "app.session" variable is not available.');
          }
  
          if ($request = $this->getRequest()) {
              return $request->getSession();
          }
      }
code: public function getSession()
      {
          if (null === $this->requestStack) {
              throw new \RuntimeException('The "app.session" variable is not available.');
          }
  
          if ($request = $this->getRequest()) {
              return $request->getSession();
          }
      }
code_tokens: public function getSession ( ) { if ( null === $ this -> requestStack ) { throw new \ RuntimeException ( 'The "app.session" variable is not available.' ) ; } if ( $ request = $ this -> getRequest ( ) ) { return $ request -> getSession ( ) ; } }
docstring: Returns the current session.
  
  @return Session|null The session
docstring_tokens: Returns the current session .