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

PHPBB3-12653