Lazy Listeners

Lazy listeners are a new feature in version 3.0, provided to reduce the performance overhead of fetching listeners and/or aggregates from a Dependency Injection Container until they are actually triggered.

The feature consists of three classes:

Preparation

In order to use the lazy listeners feature, you will need to install container-interop, if you haven't already:

$ composer require container-interop/container-interop