[ticket/12653] Caches the listeners and register them as service listener

https://tracker.phpbb.com/browse/PHPBB3-12653

PHPBB3-12653
the array is a callable =D