Skip to content

Commit 4abe84f

Browse files
committed
csfix
1 parent 3ce3e83 commit 4abe84f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/EventDispatcher/EventSubscribersCollection.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ public static function start(): self {
2323
public function __construct(private array $subscribers) {
2424
}
2525

26+
public function __invoke(ServicesBuilder $builder): iterable {
27+
yield from $this->register();
28+
}
29+
2630
/**
2731
* @param class-string<EventSubscriberInterface> ...$subscribers
2832
*/
@@ -71,8 +75,4 @@ public function register(): iterable {
7175
->addLazyListeners($dispatcher, $container),
7276
);
7377
}
74-
75-
public function __invoke(ServicesBuilder $builder): iterable {
76-
yield from $this->register();
77-
}
7878
}

0 commit comments

Comments
 (0)