Skip to content
Snippets Groups Projects

Issue #3472735: Compatibility with Drupal 11

Merged Luca Lusso requested to merge issue/sm-3472735:3472735-comatibility-with-drupal into 1.x
2 files
+ 7
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -4,13 +4,14 @@ declare(strict_types=1);
@@ -4,13 +4,14 @@ declare(strict_types=1);
namespace Drupal\sm\QueueInterceptor;
namespace Drupal\sm\QueueInterceptor;
 
use Drupal\Core\Queue\QueueFactoryInterface;
use Drupal\Core\Queue\QueueInterface;
use Drupal\Core\Queue\QueueInterface;
use Symfony\Component\Messenger\MessageBusInterface;
use Symfony\Component\Messenger\MessageBusInterface;
/**
/**
* A factory for queues which route through Messenger bus.
* A factory for queues which route through Messenger bus.
*/
*/
final class SmLegacyQueueFactory {
final class SmLegacyQueueFactory implements QueueFactoryInterface {
/**
/**
* Constructs a new LegacyQueueFactory.
* Constructs a new LegacyQueueFactory.
@@ -27,8 +28,8 @@ final class SmLegacyQueueFactory {
@@ -27,8 +28,8 @@ final class SmLegacyQueueFactory {
* core/lib/Drupal/Core/Queue/QueueFactory.php:61 for this method name, even
* core/lib/Drupal/Core/Queue/QueueFactory.php:61 for this method name, even
* though there is no interface.
* though there is no interface.
*/
*/
public function get(string $queueName): QueueInterface {
public function get($name): QueueInterface {
return SmLegacyQueue::createFromFactory($this->bus, $queueName);
return SmLegacyQueue::createFromFactory($this->bus, $name);
}
}
}
}
Loading