mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 18:27:13 +08:00
27 lines
537 B
Go
27 lines
537 B
Go
package providers
|
|
|
|
import (
|
|
"github.com/goravel/framework/contracts/foundation"
|
|
"github.com/goravel/framework/contracts/queue"
|
|
"github.com/goravel/framework/facades"
|
|
|
|
"panel/app/jobs"
|
|
)
|
|
|
|
type QueueServiceProvider struct {
|
|
}
|
|
|
|
func (receiver *QueueServiceProvider) Register(app foundation.Application) {
|
|
facades.Queue().Register(receiver.Jobs())
|
|
}
|
|
|
|
func (receiver *QueueServiceProvider) Boot(app foundation.Application) {
|
|
|
|
}
|
|
|
|
func (receiver *QueueServiceProvider) Jobs() []queue.Job {
|
|
return []queue.Job{
|
|
&jobs.ProcessTask{},
|
|
}
|
|
}
|