1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 22:44:05 +00:00

Fix array_unique causing problems in TenancyServiceProvider stub

Closes #661
This commit is contained in:
Roelof Roos 2021-06-15 11:19:52 +02:00
parent 54a33f93a8
commit 382400624c

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();
} }