Skip to content

AggregateProvider

AggregateProvider is a listener provider that allows combining multiple listener providers.

Properties

providers

private \Psr\EventDispatcher\ListenerProviderInterface[] $providers

Methods

__construct

public __construct(\Psr\EventDispatcher\ListenerProviderInterface $providers): mixed

Parameters:

Parameter Type Description
$providers \Psr\EventDispatcher\ListenerProviderInterface

getListenersForEvent

public getListenersForEvent(object $event): iterable

Parameters:

Parameter Type Description
$event object

attach

public attach(\Psr\EventDispatcher\ListenerProviderInterface $provider): void

Parameters:

Parameter Type Description
$provider \Psr\EventDispatcher\ListenerProviderInterface


Automatically generated on 2025-10-13