Skip to content

Commit

Permalink
Do not implement deprecated MessageHandlerInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
franmomu committed Jan 9, 2023
1 parent 6dcc14c commit d8bc0a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/DependencyInjection/PrestaSitemapExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\Messenger\Handler\MessageHandlerInterface;
use Symfony\Component\Messenger\MessageBusInterface;

/**
* Load Bundle configuration, configure container parameters & services.
Expand Down Expand Up @@ -51,7 +51,7 @@ public function load(array $configs, ContainerBuilder $container): void
}
}

if (interface_exists(MessageHandlerInterface::class)) {
if (interface_exists(MessageBusInterface::class)) {
$loader->load('messenger.xml');
}

Expand Down
3 changes: 1 addition & 2 deletions src/Messenger/DumpSitemapMessageHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@

use Presta\SitemapBundle\Service\DumperInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Messenger\Handler\MessageHandlerInterface;
use Symfony\Component\Routing\RouterInterface;

/**
* Message handler to handle DumpSitemapMessage asynchronously or synchronously in background
*/
class DumpSitemapMessageHandler implements MessageHandlerInterface
class DumpSitemapMessageHandler
{
/**
* @var RouterInterface
Expand Down

0 comments on commit d8bc0a3

Please sign in to comment.