A service is needed to allow callers to lookup global blocks stored in the globalblocks table. This service will move methods from the GlobalBlocking static utility class that are related to lookups, and will also modify the methods to use DI and other necessary fixes that perform no change to the functionality of the methods.
The methods being in a service also allow testing, as the existing methods are completely untested and testing them is difficult without dependency injection.
Acceptance criteria
- Create the GlobalBlockLookup service by using copies of the relevant methods from the GlobalBlocking static utility class
- Update the methods to use DI and SQL query builders
- Ensure good test coverage over the new service