mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 18:44:03 +00:00
Fix array_unique causing problems in TenancyServiceProvider stub (#672)
Closes #661
This commit is contained in:
parent
54a33f93a8
commit
1a5300ab4f
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue