[ticket/12090] Make provider a service and inject it into the helper

PHPBB3-12090