mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 20:54:04 +00:00
JobPipeline now works fully
This commit is contained in:
parent
7a2e6bb13e
commit
08ed5084d5
3 changed files with 37 additions and 39 deletions
|
|
@ -63,7 +63,7 @@ class TenancyServiceProvider extends ServiceProvider
|
|||
foreach ($this->events() as $event => $listeners) {
|
||||
foreach (array_unique($listeners) as $listener) {
|
||||
if ($listener instanceof JobPipeline) {
|
||||
$listener = $listener->toClosure();
|
||||
$listener = $listener->toListener();
|
||||
}
|
||||
|
||||
Event::listen($event, $listener);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue