From 69d678983d07b5048eeab740250fadd5f3de0878 Mon Sep 17 00:00:00 2001 From: Richard Dos Anjos Date: Wed, 22 Jan 2020 17:18:01 +0100 Subject: [PATCH] Fix for symfony 5 --- src/AmqpBundle/Amqp/DataCollector.php | 2 +- src/AmqpBundle/Event/Command.php | 2 +- src/AmqpBundle/Resources/views/Collector/amqp.html.twig | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/AmqpBundle/Amqp/DataCollector.php b/src/AmqpBundle/Amqp/DataCollector.php index faf8f62..2a53fa6 100644 --- a/src/AmqpBundle/Amqp/DataCollector.php +++ b/src/AmqpBundle/Amqp/DataCollector.php @@ -29,7 +29,7 @@ public function __construct(string $name) * @param Response $response The response object * @param \Exception $exception An exception */ - public function collect(Request $request, Response $response, \Exception $exception = null) + public function collect(Request $request, Response $response, \Throwable $exception = null) { } diff --git a/src/AmqpBundle/Event/Command.php b/src/AmqpBundle/Event/Command.php index d94fbb0..a681072 100644 --- a/src/AmqpBundle/Event/Command.php +++ b/src/AmqpBundle/Event/Command.php @@ -2,7 +2,7 @@ namespace M6Web\Bundle\AmqpBundle\Event; -use Symfony\Component\EventDispatcher\Event as SymfonyEvent; +use Symfony\Contracts\EventDispatcher\Event as SymfonyEvent; /** * Command Event. diff --git a/src/AmqpBundle/Resources/views/Collector/amqp.html.twig b/src/AmqpBundle/Resources/views/Collector/amqp.html.twig index fc046b2..431d761 100644 --- a/src/AmqpBundle/Resources/views/Collector/amqp.html.twig +++ b/src/AmqpBundle/Resources/views/Collector/amqp.html.twig @@ -16,10 +16,7 @@ {% block menu %} - {% spaceless %} - Dependency Injection Container - {% endspaceless %} - Amqp + Dependency Injection ContainerAmqp {{ collector.commands|length }}