Currently OgAccess consists of a collection of static methods. When we initially started the D8 port it made sense to use static methods so we could iterate rapidly, but currently this is starting to impede progress.
This PR converts OgAccess into a proper service that uses the dependency injection container for its dependencies, so it can be properly mocked in unit tests.
Currently
OgAccess
consists of a collection of static methods. When we initially started the D8 port it made sense to use static methods so we could iterate rapidly, but currently this is starting to impede progress.This PR converts
OgAccess
into a proper service that uses the dependency injection container for its dependencies, so it can be properly mocked in unit tests.