From ec3bca06bd71b256a0a4177dc896cbaf3f83c578 Mon Sep 17 00:00:00 2001 From: Joshua Estes Date: Thu, 26 Oct 2023 22:11:11 -0400 Subject: [PATCH 01/10] Queue Component --- .github/labeler.yml | 4 ++ bard.json | 4 ++ composer.json | 19 ++++--- docs/components/queue/index.md | 14 +++++ mkdocs.yml | 1 + src/SonsOfPHP/Component/Clock/composer.json | 2 +- .../Component/Filesystem/composer.json | 2 +- src/SonsOfPHP/Component/Queue/.gitattributes | 4 ++ src/SonsOfPHP/Component/Queue/.gitignore | 3 ++ .../Component/Queue/BrokerInterface.php | 20 ++++++++ .../Queue/Exception/QueueException.php | 10 ++++ src/SonsOfPHP/Component/Queue/LICENSE | 19 +++++++ .../Component/Queue/MessageInterface.php | 12 +++++ .../Component/Queue/QueueInterface.php | 21 ++++++++ src/SonsOfPHP/Component/Queue/README.md | 18 +++++++ src/SonsOfPHP/Component/Queue/composer.json | 51 +++++++++++++++++++ 16 files changed, 195 insertions(+), 9 deletions(-) create mode 100644 docs/components/queue/index.md create mode 100644 src/SonsOfPHP/Component/Queue/.gitattributes create mode 100644 src/SonsOfPHP/Component/Queue/.gitignore create mode 100644 src/SonsOfPHP/Component/Queue/BrokerInterface.php create mode 100644 src/SonsOfPHP/Component/Queue/Exception/QueueException.php create mode 100644 src/SonsOfPHP/Component/Queue/LICENSE create mode 100644 src/SonsOfPHP/Component/Queue/MessageInterface.php create mode 100644 src/SonsOfPHP/Component/Queue/QueueInterface.php create mode 100644 src/SonsOfPHP/Component/Queue/README.md create mode 100644 src/SonsOfPHP/Component/Queue/composer.json diff --git a/.github/labeler.yml b/.github/labeler.yml index 39c8bdbf..63f8f5c1 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -37,6 +37,10 @@ Money: - docs/components/money/* - src/SonsOfPHP/**/Money/* +Queue: + - docs/components/queue/* + - src/SonsOfPHP/**/Queue/* + Version: - docs/components/version/* - src/SonsOfPHP/**/Version/* diff --git a/bard.json b/bard.json index c8b735a2..968f6c36 100644 --- a/bard.json +++ b/bard.json @@ -53,6 +53,10 @@ "path": "src/SonsOfPHP/Component/Money", "repository": "git@github.com:SonsOfPHP/money.git" }, + { + "path": "src/SonsOfPHP/Component/Queue", + "repository": "git@github.com:SonsOfPHP/queue.git" + }, { "path": "src/SonsOfPHP/Component/Version", "repository": "git@github.com:SonsOfPHP/version.git" diff --git a/composer.json b/composer.json index 3a3bfe51..5c26c7bf 100644 --- a/composer.json +++ b/composer.json @@ -50,7 +50,8 @@ "symfony/dependency-injection": "^5|^6", "symfony/http-kernel": "^5|^6", "symfony/security-bundle": "^6", - "symfony/messenger": "^5|^6" + "symfony/messenger": "^5|^6", + "psr/clock": "^1.0" }, "replace": { "sonsofphp/bard": "self.version", @@ -65,7 +66,9 @@ "sonsofphp/json": "self.version", "sonsofphp/money": "self.version", "sonsofphp/version": "self.version", - "sonsofphp/cqrs-bundle": "self.version" + "sonsofphp/cqrs-bundle": "self.version", + "sonsofphp/filesystem": "self.version", + "sonsofphp/queue": "self.version" }, "autoload": { "psr-4": { @@ -79,10 +82,11 @@ "SonsOfPHP\\Component\\EventSourcing\\": "src/SonsOfPHP/Component/EventSourcing", "SonsOfPHP\\Bridge\\Doctrine\\EventSourcing\\": "src/SonsOfPHP/Bridge/Doctrine/EventSourcing", "SonsOfPHP\\Component\\FeatureToggle\\": "src/SonsOfPHP/Component/FeatureToggle", + "SonsOfPHP\\Component\\Filesystem\\": "src/SonsOfPHP/Component/Filesystem", "SonsOfPHP\\Component\\Json\\": "src/SonsOfPHP/Component/Json", "SonsOfPHP\\Component\\Money\\": "src/SonsOfPHP/Component/Money", - "SonsOfPHP\\Component\\Version\\": "src/SonsOfPHP/Component/Version", - "SonsOfPHP\\Component\\Filesystem\\": "src/SonsOfPHP/Component/Filesystem" + "SonsOfPHP\\Component\\Queue\\": "src/SonsOfPHP/Component/Queue", + "SonsOfPHP\\Component\\Version\\": "src/SonsOfPHP/Component/Version" }, "exclude-from-classmap": [ "src/SonsOfPHP/Bard/Tests", @@ -95,10 +99,11 @@ "src/SonsOfPHP/Component/EventSourcing/Tests", "src/SonsOfPHP/Bridge/Doctrine/EventSourcing/Tests", "src/SonsOfPHP/Component/FeatureToggle/Tests", + "src/SonsOfPHP/Component/Filesystem/Tests", "src/SonsOfPHP/Component/Json/Tests", "src/SonsOfPHP/Component/Money/Tests", - "src/SonsOfPHP/Component/Version/Tests", - "src/SonsOfPHP/Component/Filesystem/Tests" + "src/SonsOfPHP/Component/Queue/Tests", + "src/SonsOfPHP/Component/Version/Tests" ] }, "extra": { @@ -121,4 +126,4 @@ "SonsOfPHP\\Bridge\\Symfony\\Cqrs\\Tests\\": "src/SonsOfPHP/Bridge/Symfony/Cqrs/Tests" } } -} +} \ No newline at end of file diff --git a/docs/components/queue/index.md b/docs/components/queue/index.md new file mode 100644 index 00000000..8206a96b --- /dev/null +++ b/docs/components/queue/index.md @@ -0,0 +1,14 @@ +--- +title: Queue +--- + +# Queue Component + +The queue component allows you low level access to send a variety of messages +into a queue such as Amazon SQS. + +## Installation + +```shell +composer require sonsofphp/queue +``` diff --git a/mkdocs.yml b/mkdocs.yml index eb2dac5d..e947245e 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -93,6 +93,7 @@ nav: - Currency Providers: components/money/currency-providers.md - Operators: components/money/operators.md - Queries: components/money/queries.md + - Queue: components/queue/index.md - Version: components/version/index.md - Bard: - bard/index.md diff --git a/src/SonsOfPHP/Component/Clock/composer.json b/src/SonsOfPHP/Component/Clock/composer.json index 511c9311..8cdec31c 100644 --- a/src/SonsOfPHP/Component/Clock/composer.json +++ b/src/SonsOfPHP/Component/Clock/composer.json @@ -60,4 +60,4 @@ "url": "https://tidelift.com/subscription/pkg/packagist-sonsofphp-sonsofphp" } ] -} +} \ No newline at end of file diff --git a/src/SonsOfPHP/Component/Filesystem/composer.json b/src/SonsOfPHP/Component/Filesystem/composer.json index 53bdf345..5ca522c2 100644 --- a/src/SonsOfPHP/Component/Filesystem/composer.json +++ b/src/SonsOfPHP/Component/Filesystem/composer.json @@ -50,4 +50,4 @@ "url": "https://tidelift.com/subscription/pkg/packagist-sonsofphp-sonsofphp" } ] -} +} \ No newline at end of file diff --git a/src/SonsOfPHP/Component/Queue/.gitattributes b/src/SonsOfPHP/Component/Queue/.gitattributes new file mode 100644 index 00000000..84c7add0 --- /dev/null +++ b/src/SonsOfPHP/Component/Queue/.gitattributes @@ -0,0 +1,4 @@ +/Tests export-ignore +/phpunit.xml.dist export-ignore +/.gitattributes export-ignore +/.gitignore export-ignore diff --git a/src/SonsOfPHP/Component/Queue/.gitignore b/src/SonsOfPHP/Component/Queue/.gitignore new file mode 100644 index 00000000..5414c2c6 --- /dev/null +++ b/src/SonsOfPHP/Component/Queue/.gitignore @@ -0,0 +1,3 @@ +composer.lock +phpunit.xml +vendor/ diff --git a/src/SonsOfPHP/Component/Queue/BrokerInterface.php b/src/SonsOfPHP/Component/Queue/BrokerInterface.php new file mode 100644 index 00000000..190f4249 --- /dev/null +++ b/src/SonsOfPHP/Component/Queue/BrokerInterface.php @@ -0,0 +1,20 @@ +add($queue); + * $broker->get('queue.name')->publish($message); + * + * @author Joshua Estes + */ +interface BrokerInterface +{ + public function get(string $name): QueueInterface; + + public function add(QueueInterface $queue): void; +} diff --git a/src/SonsOfPHP/Component/Queue/Exception/QueueException.php b/src/SonsOfPHP/Component/Queue/Exception/QueueException.php new file mode 100644 index 00000000..c3fc9a72 --- /dev/null +++ b/src/SonsOfPHP/Component/Queue/Exception/QueueException.php @@ -0,0 +1,10 @@ + + */ +class QueueException extends \Exception {} diff --git a/src/SonsOfPHP/Component/Queue/LICENSE b/src/SonsOfPHP/Component/Queue/LICENSE new file mode 100644 index 00000000..39238382 --- /dev/null +++ b/src/SonsOfPHP/Component/Queue/LICENSE @@ -0,0 +1,19 @@ +Copyright 2022 to Present Joshua Estes + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/src/SonsOfPHP/Component/Queue/MessageInterface.php b/src/SonsOfPHP/Component/Queue/MessageInterface.php new file mode 100644 index 00000000..1413835e --- /dev/null +++ b/src/SonsOfPHP/Component/Queue/MessageInterface.php @@ -0,0 +1,12 @@ + + */ +interface MessageInterface extends \Serializable, \JsonSerializable +{ +} diff --git a/src/SonsOfPHP/Component/Queue/QueueInterface.php b/src/SonsOfPHP/Component/Queue/QueueInterface.php new file mode 100644 index 00000000..a4a280f8 --- /dev/null +++ b/src/SonsOfPHP/Component/Queue/QueueInterface.php @@ -0,0 +1,21 @@ + + */ +interface QueueInterface +{ + public function getName(): string; + + public function publish(MessageInterface $message): void; + + public function receive(): iterable; + + public function delete(MessageInterface $message): void; + + public function purge(): void; +} diff --git a/src/SonsOfPHP/Component/Queue/README.md b/src/SonsOfPHP/Component/Queue/README.md new file mode 100644 index 00000000..c990b578 --- /dev/null +++ b/src/SonsOfPHP/Component/Queue/README.md @@ -0,0 +1,18 @@ +Sons of PHP - Queue +=================== + +Library for working with multiple queues + +## Learn More + +* [Documentation][docs] +* [Contributing][contributing] +* [Report Issues][issues] and [Submit Pull Requests][pull-requests] in the [Mother Repository][mother-repo] +* Get Help & Support using [Discussions][discussions] + +[discussions]: https://github.com/orgs/SonsOfPHP/discussions +[mother-repo]: https://github.com/SonsOfPHP/sonsofphp +[contributing]: https://docs.sonsofphp.com/contributing/ +[docs]: https://docs.sonsofphp.com/components/queue/ +[issues]: https://github.com/SonsOfPHP/sonsofphp/issues?q=is%3Aopen+is%3Aissue+label%3AQueue +[pull-requests]: https://github.com/SonsOfPHP/sonsofphp/pulls?q=is%3Aopen+is%3Apr+label%3AQueue diff --git a/src/SonsOfPHP/Component/Queue/composer.json b/src/SonsOfPHP/Component/Queue/composer.json new file mode 100644 index 00000000..577d06b6 --- /dev/null +++ b/src/SonsOfPHP/Component/Queue/composer.json @@ -0,0 +1,51 @@ +{ + "name": "sonsofphp/queue", + "type": "library", + "description": "Library to send messages into multiple different message queues", + "keywords": [ + "message-queue" + ], + "homepage": "https://github.com/SonsOfPHP/queue", + "license": "MIT", + "authors": [ + { + "name": "Joshua Estes", + "email": "joshua@sonsofphp.com" + } + ], + "support": { + "issues": "https://github.com/SonsOfPHP/sonsofphp/issues", + "forum": "https://github.com/orgs/SonsOfPHP/discussions", + "docs": "https://docs.sonsofphp.com", + "chat": "https://discord.gg/sdVxNhFqND" + }, + "autoload": { + "psr-4": { + "SonsOfPHP\\Component\\Queue\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "minimum-stability": "dev", + "prefer-stable": true, + "require": { + "php": ">=8.1" + }, + "extra": { + "sort-packages": true, + "branch-alias": { + "dev-main": "0.3.x-dev" + } + }, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/JoshuaEstes" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/subscription/pkg/packagist-sonsofphp-sonsofphp" + } + ] +} \ No newline at end of file From f077e5848a20ffd918b6c11ef86b0c818d9861c3 Mon Sep 17 00:00:00 2001 From: Joshua Estes Date: Thu, 26 Oct 2023 22:13:32 -0400 Subject: [PATCH 02/10] updated CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0432329c..f042deda 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ Examples: ## [Unreleased] * [PR #51](https://github.com/SonsOfPHP/sonsofphp/pull/51) Added new Filesystem component +* [PR #54](https://github.com/SonsOfPHP/sonsofphp/pull/54) Queue Component ## [0.3.8] From c5ad2cd988b565352eee11ecf8cd091c79f7b423 Mon Sep 17 00:00:00 2001 From: Joshua Estes Date: Thu, 26 Oct 2023 22:19:26 -0400 Subject: [PATCH 03/10] refactor --- src/SonsOfPHP/Component/Queue/{ => Broker}/BrokerInterface.php | 2 +- .../Component/Queue/{ => Message}/MessageInterface.php | 2 +- .../Component/Queue/{ => MessageQueue}/QueueInterface.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/SonsOfPHP/Component/Queue/{ => Broker}/BrokerInterface.php (89%) rename src/SonsOfPHP/Component/Queue/{ => Message}/MessageInterface.php (78%) rename src/SonsOfPHP/Component/Queue/{ => MessageQueue}/QueueInterface.php (87%) diff --git a/src/SonsOfPHP/Component/Queue/BrokerInterface.php b/src/SonsOfPHP/Component/Queue/Broker/BrokerInterface.php similarity index 89% rename from src/SonsOfPHP/Component/Queue/BrokerInterface.php rename to src/SonsOfPHP/Component/Queue/Broker/BrokerInterface.php index 190f4249..e06822fa 100644 --- a/src/SonsOfPHP/Component/Queue/BrokerInterface.php +++ b/src/SonsOfPHP/Component/Queue/Broker/BrokerInterface.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace SonsOfPHP\Component\Queue; +namespace SonsOfPHP\Component\Queue\Broker; /** * Example Usage: diff --git a/src/SonsOfPHP/Component/Queue/MessageInterface.php b/src/SonsOfPHP/Component/Queue/Message/MessageInterface.php similarity index 78% rename from src/SonsOfPHP/Component/Queue/MessageInterface.php rename to src/SonsOfPHP/Component/Queue/Message/MessageInterface.php index 1413835e..fb6b8639 100644 --- a/src/SonsOfPHP/Component/Queue/MessageInterface.php +++ b/src/SonsOfPHP/Component/Queue/Message/MessageInterface.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace SonsOfPHP\Component\Queue; +namespace SonsOfPHP\Component\Queue\Message; /** * @author Joshua Estes diff --git a/src/SonsOfPHP/Component/Queue/QueueInterface.php b/src/SonsOfPHP/Component/Queue/MessageQueue/QueueInterface.php similarity index 87% rename from src/SonsOfPHP/Component/Queue/QueueInterface.php rename to src/SonsOfPHP/Component/Queue/MessageQueue/QueueInterface.php index a4a280f8..c2c3aea5 100644 --- a/src/SonsOfPHP/Component/Queue/QueueInterface.php +++ b/src/SonsOfPHP/Component/Queue/MessageQueue/QueueInterface.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace SonsOfPHP\Component\Queue; +namespace SonsOfPHP\Component\Queue\MessageQueue; /** * @author Joshua Estes From 0a78de6bfa805a9ddbc9839bd351920a82137080 Mon Sep 17 00:00:00 2001 From: Joshua Estes Date: Thu, 26 Oct 2023 22:27:57 -0400 Subject: [PATCH 04/10] updates --- .../Component/Queue/Broker/Broker.php | 42 +++++++++++++++++++ .../Queue/MessageQueue/QueueInterface.php | 2 + 2 files changed, 44 insertions(+) create mode 100644 src/SonsOfPHP/Component/Queue/Broker/Broker.php diff --git a/src/SonsOfPHP/Component/Queue/Broker/Broker.php b/src/SonsOfPHP/Component/Queue/Broker/Broker.php new file mode 100644 index 00000000..7cc3a130 --- /dev/null +++ b/src/SonsOfPHP/Component/Queue/Broker/Broker.php @@ -0,0 +1,42 @@ + + */ +class Broker implements BrokerInterface +{ + private array $queues = []; + + public function __construct( + array $queues = [], + ) { + foreach ($queues as $queue) { + $this->add($queue); + } + } + + public function get(string $name): QueueInterface + { + if (!array_key_exists($queue->getName(), $this->queues)) { + throw new QueueException(); + } + + return $this->queues[$queue->getName()]; + } + + public function add(QueueInterface $queue): void + { + if (array_key_exists($queue->getName(), $this->queues)) { + throw new QueueException(); + } + + $this->queues[$queue->getName()] = $queue; + } +} diff --git a/src/SonsOfPHP/Component/Queue/MessageQueue/QueueInterface.php b/src/SonsOfPHP/Component/Queue/MessageQueue/QueueInterface.php index c2c3aea5..982d1961 100644 --- a/src/SonsOfPHP/Component/Queue/MessageQueue/QueueInterface.php +++ b/src/SonsOfPHP/Component/Queue/MessageQueue/QueueInterface.php @@ -4,6 +4,8 @@ namespace SonsOfPHP\Component\Queue\MessageQueue; +use SonsOfPHP\Component\Queue\Message\MessageInterface; + /** * @author Joshua Estes */ From 82e0b639bb4ee9aa7bb78026c75f07fa27e0d0b8 Mon Sep 17 00:00:00 2001 From: Joshua Estes Date: Fri, 27 Oct 2023 10:39:06 -0400 Subject: [PATCH 05/10] labeler fix --- src/SonsOfPHP/Component/Clock/composer.json | 2 +- src/SonsOfPHP/Component/Filesystem/composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SonsOfPHP/Component/Clock/composer.json b/src/SonsOfPHP/Component/Clock/composer.json index 8cdec31c..511c9311 100644 --- a/src/SonsOfPHP/Component/Clock/composer.json +++ b/src/SonsOfPHP/Component/Clock/composer.json @@ -60,4 +60,4 @@ "url": "https://tidelift.com/subscription/pkg/packagist-sonsofphp-sonsofphp" } ] -} \ No newline at end of file +} diff --git a/src/SonsOfPHP/Component/Filesystem/composer.json b/src/SonsOfPHP/Component/Filesystem/composer.json index 5ca522c2..53bdf345 100644 --- a/src/SonsOfPHP/Component/Filesystem/composer.json +++ b/src/SonsOfPHP/Component/Filesystem/composer.json @@ -50,4 +50,4 @@ "url": "https://tidelift.com/subscription/pkg/packagist-sonsofphp-sonsofphp" } ] -} \ No newline at end of file +} From 2a8606ee2374e14a118de8773ea5e2dfeb1f727f Mon Sep 17 00:00:00 2001 From: Joshua Estes Date: Fri, 27 Oct 2023 10:39:15 -0400 Subject: [PATCH 06/10] comments --- src/SonsOfPHP/Component/Queue/MessageQueue/QueueInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SonsOfPHP/Component/Queue/MessageQueue/QueueInterface.php b/src/SonsOfPHP/Component/Queue/MessageQueue/QueueInterface.php index 982d1961..5df2c1c8 100644 --- a/src/SonsOfPHP/Component/Queue/MessageQueue/QueueInterface.php +++ b/src/SonsOfPHP/Component/Queue/MessageQueue/QueueInterface.php @@ -9,7 +9,7 @@ /** * @author Joshua Estes */ -interface QueueInterface +interface QueueInterface // or TransportInterface? { public function getName(): string; From c47df673a78424b66235d5d59c877b9a4642a77a Mon Sep 17 00:00:00 2001 From: Joshua Estes Date: Fri, 27 Oct 2023 10:40:16 -0400 Subject: [PATCH 07/10] documentation --- .github/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 63f8f5c1..819a79c7 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,5 +1,5 @@ documentation: - - docs/* + - docs/** Bard: - docs/bard/* From d31833f2847e840dff1a2de8cae2a24ed5b17f75 Mon Sep 17 00:00:00 2001 From: Joshua Estes Date: Fri, 27 Oct 2023 10:42:00 -0400 Subject: [PATCH 08/10] does this matter --- .github/labeler.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 819a79c7..60094ec8 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,6 +1,3 @@ -documentation: - - docs/** - Bard: - docs/bard/* - src/SonsOfPHP/Bard/* @@ -44,3 +41,6 @@ Queue: Version: - docs/components/version/* - src/SonsOfPHP/**/Version/* + +documentation: + - docs/** From 430eed4f17bf7d5efffa5f0adde2897ba4ab02ad Mon Sep 17 00:00:00 2001 From: Joshua Estes Date: Fri, 27 Oct 2023 10:47:14 -0400 Subject: [PATCH 09/10] meh --- .github/workflows/labeler.yml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index f347a2ec..b45b5322 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,15 +1,16 @@ -name: "PR Labeler" +name: "Pull Request Labeler" on: - - pull_request_target + - pull_request_target jobs: - label: - permissions: - contents: read - pull-requests: write - runs-on: ubuntu-latest - steps: - - uses: actions/labeler@v4 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" - sync-labels: true + triage: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: true From d61a284bf2507599adc2c81c66ab0934529f01c0 Mon Sep 17 00:00:00 2001 From: Joshua Estes Date: Fri, 27 Oct 2023 11:32:21 -0400 Subject: [PATCH 10/10] meh --- src/SonsOfPHP/Component/Queue/composer.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/SonsOfPHP/Component/Queue/composer.json b/src/SonsOfPHP/Component/Queue/composer.json index 577d06b6..d8a9cdef 100644 --- a/src/SonsOfPHP/Component/Queue/composer.json +++ b/src/SonsOfPHP/Component/Queue/composer.json @@ -3,7 +3,10 @@ "type": "library", "description": "Library to send messages into multiple different message queues", "keywords": [ - "message-queue" + "message-queue", + "broker", + "file-queue", + "queue" ], "homepage": "https://github.com/SonsOfPHP/queue", "license": "MIT", @@ -48,4 +51,4 @@ "url": "https://tidelift.com/subscription/pkg/packagist-sonsofphp-sonsofphp" } ] -} \ No newline at end of file +}