[ticket/9657] Make content visibility a service and inject everything

PHPBB3-9657
[ticket/9657] Use the service instead of the static class

PHPBB3-9657
[ticket/9657] Fix unit tests

PHPBB3-9657