This PR prepares the codebase for the Custom E2E tests and local test environment features.
Make Cache a singleton in the DI container, so that whenever an instance is requested, it will return the same, known instance throughout the entire request
This made it possible to access Cache directly without getting it from Environment, which reduced the usage of Environment on the codebase to just the add, remove and switch commands, whereas previously it was everywhere we needed to read from cache.
Renamed Environment to Backend. This class is basically the connection to the Manager Backend. It was called Environment because you could connect to a Prod backend, staging, local, etc. I needed the Environment name for the local test environment, so I renamed this to Backend to reduce confusion and reduce ambiguity in the codebase.
I'll be marking it as draft until we can merge all Custom E2E Tests PR.
This PR prepares the codebase for the Custom E2E tests and local test environment features.
Cache
a singleton in the DI container, so that whenever an instance is requested, it will return the same, known instance throughout the entire requestCache
directly without getting it fromEnvironment
, which reduced the usage ofEnvironment
on the codebase to just theadd
,remove
andswitch
commands, whereas previously it was everywhere we needed to read from cache.Environment
toBackend
. This class is basically the connection to the Manager Backend. It was calledEnvironment
because you could connect to a Prod backend, staging, local, etc. I needed theEnvironment
name for the local test environment, so I renamed this toBackend
to reduce confusion and reduce ambiguity in the codebase.I'll be marking it as draft until we can merge all Custom E2E Tests PR.