From d5b6b93ce92a4d2bfc8092ca522dd5cbfdfd971e Mon Sep 17 00:00:00 2001 From: Charles Fries Date: Wed, 11 Sep 2024 10:37:04 -0700 Subject: [PATCH] chore: remove service inject imports (#324) * Inject service import * Inject --- addon/adapters/cloud-firestore-modular.ts | 2 +- addon/services/-firestore-data-manager.ts | 2 +- tests/dummy/app/controllers/application.ts | 2 +- tests/dummy/app/controllers/features.ts | 2 +- tests/dummy/app/routes/application.ts | 2 +- tests/dummy/app/routes/create-record.ts | 2 +- tests/dummy/app/routes/delete-record.ts | 2 +- tests/dummy/app/routes/find-all.ts | 2 +- tests/dummy/app/routes/find-record.ts | 2 +- tests/dummy/app/routes/query.ts | 2 +- tests/dummy/app/routes/update-record.ts | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/addon/adapters/cloud-firestore-modular.ts b/addon/adapters/cloud-firestore-modular.ts index 0f75a27a..06fe63c1 100644 --- a/addon/adapters/cloud-firestore-modular.ts +++ b/addon/adapters/cloud-firestore-modular.ts @@ -1,5 +1,5 @@ import { getOwner } from '@ember/application'; -import { inject as service } from '@ember/service'; +import { service } from '@ember/service'; import Adapter from '@ember-data/adapter'; import DS, { type ModelSchema } from 'ember-data'; import type ModelRegistry from 'ember-data/types/registries/model'; diff --git a/addon/services/-firestore-data-manager.ts b/addon/services/-firestore-data-manager.ts index b7904905..dcb34ddf 100644 --- a/addon/services/-firestore-data-manager.ts +++ b/addon/services/-firestore-data-manager.ts @@ -1,7 +1,7 @@ import { next } from '@ember/runloop'; import DS from 'ember-data'; import type ModelRegistry from 'ember-data/types/registries/model'; -import Service, { inject as service } from '@ember/service'; +import Service, { service } from '@ember/service'; import StoreService from '@ember-data/store'; import type { diff --git a/tests/dummy/app/controllers/application.ts b/tests/dummy/app/controllers/application.ts index 415562e2..349626e8 100644 --- a/tests/dummy/app/controllers/application.ts +++ b/tests/dummy/app/controllers/application.ts @@ -1,5 +1,5 @@ import { action } from '@ember/object'; -import { inject as service } from '@ember/service'; +import { service } from '@ember/service'; import Controller from '@ember/controller'; import type { Auth } from 'firebase/auth'; diff --git a/tests/dummy/app/controllers/features.ts b/tests/dummy/app/controllers/features.ts index 93588e63..6eb6f48d 100644 --- a/tests/dummy/app/controllers/features.ts +++ b/tests/dummy/app/controllers/features.ts @@ -1,5 +1,5 @@ import { action } from '@ember/object'; -import { inject as service } from '@ember/service'; +import { service } from '@ember/service'; import { tracked } from '@glimmer/tracking'; import Controller from '@ember/controller'; import EmberArray from '@ember/array'; diff --git a/tests/dummy/app/routes/application.ts b/tests/dummy/app/routes/application.ts index bff3cf4e..1c14b5ee 100644 --- a/tests/dummy/app/routes/application.ts +++ b/tests/dummy/app/routes/application.ts @@ -1,4 +1,4 @@ -import { inject as service } from '@ember/service'; +import { service } from '@ember/service'; import Route from '@ember/routing/route'; import SessionService from 'ember-simple-auth/services/session'; diff --git a/tests/dummy/app/routes/create-record.ts b/tests/dummy/app/routes/create-record.ts index f4e78bbd..bedc1fcb 100644 --- a/tests/dummy/app/routes/create-record.ts +++ b/tests/dummy/app/routes/create-record.ts @@ -1,4 +1,4 @@ -import { inject as service } from '@ember/service'; +import { service } from '@ember/service'; import Route from '@ember/routing/route'; import Store from '@ember-data/store'; diff --git a/tests/dummy/app/routes/delete-record.ts b/tests/dummy/app/routes/delete-record.ts index e270f399..29b7c54e 100644 --- a/tests/dummy/app/routes/delete-record.ts +++ b/tests/dummy/app/routes/delete-record.ts @@ -1,4 +1,4 @@ -import { inject as service } from '@ember/service'; +import { service } from '@ember/service'; import Route from '@ember/routing/route'; import Store from '@ember-data/store'; diff --git a/tests/dummy/app/routes/find-all.ts b/tests/dummy/app/routes/find-all.ts index 148674c5..486fd7d4 100644 --- a/tests/dummy/app/routes/find-all.ts +++ b/tests/dummy/app/routes/find-all.ts @@ -1,4 +1,4 @@ -import { inject as service } from '@ember/service'; +import { service } from '@ember/service'; import ArrayProxy from '@ember/array/proxy'; import Route from '@ember/routing/route'; import Store from '@ember-data/store'; diff --git a/tests/dummy/app/routes/find-record.ts b/tests/dummy/app/routes/find-record.ts index 8d44ed90..735fdac1 100644 --- a/tests/dummy/app/routes/find-record.ts +++ b/tests/dummy/app/routes/find-record.ts @@ -1,4 +1,4 @@ -import { inject as service } from '@ember/service'; +import { service } from '@ember/service'; import Route from '@ember/routing/route'; import Store from '@ember-data/store'; diff --git a/tests/dummy/app/routes/query.ts b/tests/dummy/app/routes/query.ts index 9ba76ad7..910ab594 100644 --- a/tests/dummy/app/routes/query.ts +++ b/tests/dummy/app/routes/query.ts @@ -1,4 +1,4 @@ -import { inject as service } from '@ember/service'; +import { service } from '@ember/service'; import ArrayProxy from '@ember/array/proxy'; import Route from '@ember/routing/route'; import Store from '@ember-data/store'; diff --git a/tests/dummy/app/routes/update-record.ts b/tests/dummy/app/routes/update-record.ts index ac18bdbe..da0d5046 100644 --- a/tests/dummy/app/routes/update-record.ts +++ b/tests/dummy/app/routes/update-record.ts @@ -1,4 +1,4 @@ -import { inject as service } from '@ember/service'; +import { service } from '@ember/service'; import Route from '@ember/routing/route'; import Store from '@ember-data/store';