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

https://tracker.phpbb.com/browse/PHPBB3-12653

PHPBB3-12653
i read the wrong line, okay :p
updated