1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 13:54:03 +00:00

Fix array_unique causing problems in TenancyServiceProvider stub (#672)

Closes #661
This commit is contained in:
Roelof Roos 2021-06-15 20:43:53 +02:00 committed by GitHub
parent 54a33f93a8
commit 1a5300ab4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,7 +108,7 @@ class TenancyServiceProvider extends ServiceProvider
protected function bootEvents() protected function bootEvents()
{ {
foreach ($this->events() as $event => $listeners) { foreach ($this->events() as $event => $listeners) {
foreach (array_unique($listeners) as $listener) { foreach ($listeners as $listener) {
if ($listener instanceof JobPipeline) { if ($listener instanceof JobPipeline) {
$listener = $listener->toListener(); $listener = $listener->toListener();
} }