Trying to inject cacheFactory into loginFactory