tilttek / sets-bundle
Use tilttek/sets in Symfony: stores chosen by configuration, and completions whose event was lost sent again by a command or a schedule.
Requires
- php: >=8.5
- phil/resource: ^0.1@dev
- symfony/config: ^8.2
- symfony/dependency-injection: ^8.2
- tilttek/sets: ^0.3@dev
Requires (Dev)
- phpunit/phpunit: ^13.4
- psr/clock: ^1.0
- psr/container: ^2.0
- psr/event-dispatcher: ^1.0
- symfony/console: ^8.2
- symfony/event-dispatcher: ^8.2
- symfony/framework-bundle: ^8.2
- symfony/http-kernel: ^8.2
- symfony/lock: ^8.2
- symfony/messenger: ^8.2
- symfony/scheduler: ^8.2
- symfony/yaml: ^8.2
Suggests
- symfony/console: For the tilttek:sets:deliver command, which tells again the completions whose event was not delivered
- symfony/lock: To keep two workers consuming the delivery schedule from both sending its message
- symfony/messenger: For the handler of the message that tells again the completions whose event was not delivered
- symfony/scheduler: For the schedule that sends that message at an interval
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-28 03:41:20 UTC
README
Use tilttek/sets in Symfony: stores chosen by configuration, and completions whose event was lost sent again by a command or a schedule.
tilttek/sets-bundle registers the Sets service of tilttek/sets from its configuration: the stores of the
definitions and of the completions the application names — memory, for tests, when it names none —, its clock, its
event dispatcher and the backoff of a holder whose delivery failed. It adds the tilttek:sets:deliver command, the
DeliverPendingCompletions message and its handler, and the tilttek_sets schedule, each when its Symfony component
is installed, so that a completion whose handler threw is told again without waiting for its holder's holdings to
change.
Status
| Part | State |
|---|---|
| Configuration: stores, clock, backoff and schedule | Implemented and tested |
Sets on the application's event dispatcher |
Implemented and tested |
The tilttek:sets:deliver command, with --limit and --holder |
Implemented and tested |
The DeliverPendingCompletions message and its handler |
Implemented and tested |
The tilttek_sets schedule, with an interval, a limit and a lock |
Implemented and tested |
| Doctrine stores of the definitions and the completions | Not started: the application names its own |
Documentation
| Document | What it covers |
|---|---|
| Installation | Requirements, optional packages and registering the bundle. |
| Configuration | Every key, its default and what it sets. |
| Resuming deliveries | The command, the schedule, its worker and its lock, and routing the message. |
| Extension points | The stores, the clock and the listeners of the events. |
| Testing | The bundle's tests. |
| Reference | Every class and service of the bundle. |
Quick start
// config/bundles.php Tilttek\SetsBundle\TilttekSetsBundle::class => ['all' => true],
# config/packages/tilttek_sets.yaml tilttek_sets: definition_store: App\Sets\DefinitionStore completion_store: App\Sets\CompletionStore clock: clock
bin/console messenger:consume scheduler_tilttek_sets
Requirements
PHP 8.5 or later, Symfony 8.2 and tilttek/sets; symfony/console for the command, symfony/messenger for the
handler, symfony/scheduler for the schedule and symfony/lock for its lock.
Contributing
Contributions are welcome on the PHIL monorepo: read the contribution guide and the code of conduct. Report a vulnerability privately, as the security policy explains, never in a public issue.
License
MIT, © Philippe Gamache, doing business as Le Gnome Archiviste; a Tilttek project. See LICENSE.