(fn: (injector: Injector) => IFirebaseApp, ...deps: any[])
| 76 | // injection scope. This allows developers to more easily work with multiple Firebase Applications. Downside |
| 77 | // is that DI for app name and options doesn't really make sense anymore. |
| 78 | export function provideFirebaseApp(fn: (injector: Injector) => IFirebaseApp, ...deps: any[]): EnvironmentProviders { |
| 79 | return makeEnvironmentProviders([ |
| 80 | DEFAULT_FIREBASE_APP_PROVIDER, |
| 81 | FIREBASE_APPS_PROVIDER, |
| 82 | { |
| 83 | provide: PROVIDED_FIREBASE_APPS, |
| 84 | useFactory: firebaseAppFactory(fn), |
| 85 | multi: true, |
| 86 | deps: [ |
| 87 | NgZone, |
| 88 | Injector, |
| 89 | ɵAngularFireSchedulers, |
| 90 | ...deps, |
| 91 | ], |
| 92 | } |
| 93 | ]) |
| 94 | } |
no test coverage detected