From 8b1d5397d3c6dbeb3c21b28332303492844c5a74 Mon Sep 17 00:00:00 2001 From: Ivo Monteiro Date: Wed, 22 Mar 2023 21:34:17 +0000 Subject: [PATCH 1/2] Move to Psr containers (deprecate Interop\Container\ContainerInterface) --- src/Factory/DoctrineQueueFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Factory/DoctrineQueueFactory.php b/src/Factory/DoctrineQueueFactory.php index 757548d..7fb62a9 100644 --- a/src/Factory/DoctrineQueueFactory.php +++ b/src/Factory/DoctrineQueueFactory.php @@ -6,7 +6,7 @@ use SlmQueueDoctrine\Options\DoctrineOptions; use SlmQueueDoctrine\Queue\DoctrineQueue; use Laminas\ServiceManager\Factory\FactoryInterface; -use Interop\Container\ContainerInterface; +use Psr\Container\ContainerInterface; /** * DoctrineQueueFactory From 5029a837fdfbf321382788816b1829fae0f0073a Mon Sep 17 00:00:00 2001 From: Ivo Monteiro Date: Wed, 22 Mar 2023 21:35:17 +0000 Subject: [PATCH 2/2] README links fix --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index af2fdc8..439e103 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Created by Stefan Kleff Requirements ------------ -* [SlmQueue](https://github.com/juriansluiman/SlmQueue) +* [SlmQueue](https://github.com/JouwWeb/SlmQueue) * [Doctrine 2 ORM Module](https://github.com/doctrine/DoctrineORMModule) or [roave/psr-container-doctrine](https://github.com/roave/psr-container-doctrine) Note: it's necessary require the doctrine package in composer.json file. @@ -22,16 +22,16 @@ If you have the [laminas/laminas-component-installer](https://github.com/laminas * in Laminas MVC, enable the module by adding `SlmQueueDoctrine` in your application.config.php file. * in Mezzio, enable the module by adding `SlmQueueDoctrine\ConfigProvider::class,` in your config.php file. -Note: Don't forget install [SlmQueue](https://github.com/juriansluiman/SlmQueue) in you config file, which is required. +Note: Don't forget install [SlmQueue](https://github.com/JouwWeb/SlmQueue) in you config file, which is required. Documentation ------------- -Before reading SlmQueueDoctrine documentation, please read [SlmQueue documentation](https://github.com/juriansluiman/SlmQueue). +Before reading SlmQueueDoctrine documentation, please read [SlmQueue documentation](https://github.com/JouwWeb/SlmQueue). ### Configuring the connection -You need to register a doctrine connection which SlmQueueDoctrine will use to access the database into the service manager. Here are some [examples](https://github.com/DASPRiD/container-interop-doctrine/tree/master/example). +You need to register a doctrine connection which SlmQueueDoctrine will use to access the database into the service manager. Here are some [examples](https://github.com/Roave/psr-container-doctrine/tree/master/example). Connection parameters can be defined in the application configuration: @@ -119,11 +119,11 @@ return [ Provided Worker Strategies -------------------------- -In addition to the provided strategies by [SlmQueue](https://github.com/juriansluiman/SlmQueue/blob/master/docs/6.Events.md) SlmQueueDoctrine comes with these strategies; +In addition to the provided strategies by [SlmQueue](https://github.com/JouwWeb/SlmQueue/blob/master/docs/6.Events.md) SlmQueueDoctrine comes with these strategies; #### ClearObjectManagerStrategy -This strategy will clear the ObjectManager before execution of individual jobs. The job must implement the [DoctrineModule\Persistence\ObjectManagerAwareInterface](https://github.com/doctrine/DoctrineModule/blob/master/src/DoctrineModule/Persistence/ObjectManagerAwareInterface.php) or [SlmQueueDoctrine\Persistence\ObjectManagerAwareInterface](https://github.com/juriansluiman/SlmQueueDoctrine/blob/master/src/Persistence/ObjectManagerAwareInterface.php). +This strategy will clear the ObjectManager before execution of individual jobs. The job must implement the [DoctrineModule\Persistence\ObjectManagerAwareInterface](https://github.com/doctrine/DoctrineModule/blob/master/src/DoctrineModule/Persistence/ObjectManagerAwareInterface.php) or [SlmQueueDoctrine\Persistence\ObjectManagerAwareInterface](https://github.com/JouwWeb/SlmQueueDoctrine/blob/master/src/Persistence/ObjectManagerAwareInterface.php). listens to: