Commit 68b70b52 authored by git's avatar git Committed by Pierre Rudloff
Browse files

Issue #3286018 by Project Update Bot: Automated Drupal 10 compatibility fixes

parent fde75953
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
name: AJAX debug
type: module
description: "Allow inspecting AJAX responses in the browser"
core: 8.x
core_version_requirement: ^8 || ^9
core_version_requirement: ^8 || ^9 || ^10
+2 −2
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ namespace Drupal\ajax_debug\EventSubscriber;

use Drupal\Core\Ajax\AjaxResponse;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
use Symfony\Component\HttpKernel\Event\ResponseEvent;
use Symfony\Component\HttpKernel\KernelEvents;

/**
@@ -17,7 +17,7 @@ class ResponseSubscriber implements EventSubscriberInterface {
  /**
   * KernelEvents::RESPONSE event handler.
   */
  public function onResponse(FilterResponseEvent $event) {
  public function onResponse(ResponseEvent $event) {
    $response = $event->getResponse();
    if ($response instanceof AjaxResponse) {
      // We undo what AjaxResponseSubscriber does.