This package is intended to provide Queue Manager in Berlioz Framework.
For more information, and use of Berlioz Framework, go to website and online documentation : https://getberlioz.com
You can install Queue Manager Package with Composer, it's the recommended installation.
$ composer require berlioz/queue-manager-package
- PHP ^8.2
- Packages:
- berlioz/cli-core
- berlioz/queue-manager
Default configuration:
{
berlioz: {
queues: {
queues: [
{
type: "Berlioz\\QueueManager\\Queue\\DbQueue",
name: [
"default",
"high",
"low"
],
db: {
dsn: "mysql:dbname=mydb;host=localhost",
username: "myUsername",
password: "mySuperPassword"
}
},
// Case where you need to use same connection as Hector Package
{
type: "Berlioz\\QueueManager\\Queue\\DbQueue",
name: [
"default",
"high",
"low"
],
db: {
dsn: "{config: hector.dsn}",
username: "{config: hector.username}",
password: "{config: hector.password}"
}
}
],
handlers: {
"jobname": "MyProject\\Job\\MyJobNameHandler"
},
factories: [
""
]
}
}
}