-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bind to all or specified multiple events (#115)
* Allow to bind to all or multiple events * Documentation * Refactoring * Fix topic creation method call * Fix typos --------- Co-authored-by: Eugene Kirdzei <e.ki@nuwber.com>
- Loading branch information
1 parent
a398ff8
commit 1c99041
Showing
23 changed files
with
205 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace RabbitEvents\Foundation\Support; | ||
|
||
use RabbitEvents\Foundation\Contracts\QueueNameInterface; | ||
|
||
class EnqueueOptions implements QueueNameInterface | ||
{ | ||
public readonly string $name; | ||
|
||
public function __construct(private readonly string $applicationName, public readonly array $events) | ||
{ | ||
$this->name = $this->resolveQueueName(); | ||
} | ||
|
||
public function resolveQueueName(): string | ||
{ | ||
return $this->applicationName . ":" . implode(',', $this->events); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.