removeExceptionLogger example


    return new Response($text);
  }

  /** * Tests controller for ExceptionHandlingTest::testBacktraceEscaping(). * * Passes unsafe HTML as an argument to a method which throws an exception. * This can be used to test if the generated backtrace is properly escaped. */
  public function test10() {
    $this->removeExceptionLogger();
    $this->throwException('<script>alert(\'xss\')</script>');
  }

  public function test18() {
    return [
      '#cache' => [
        'contexts' => ['url'],
        'tags' => ['foo'],
        'max-age' => 60,
      ],
      'content' => [
        
Home | Imprint | This part of the site doesn't use cookies.