The doc comment array<class-string, string[]> at position 2 could not be parsed: Unknown type name 'class-string' at position 2 in array<class-string, string[]>.
The doc comment array<class-string, string[]> at position 2 could not be parsed: Unknown type name 'class-string' at position 2 in array<class-string, string[]>.
Loading history...
32
*/
33
public function __construct(array $listeners, ContainerInterface $container)
34
{
35
$this->listeners = $listeners;
36
$this->container = $container;
37
}
38
39
/**
40
* @inheritDoc
41
*
42
* @return iterable<callable(object):void>
43
*/
44
public function getListenersForEvent(object $event): iterable
45
{
46
foreach ($this->listeners as $class => $listeners) {