Deprecate import inject from @ember/service (#2716)

* Deprecate usage of import inject
This commit is contained in:
Carlos Alcaide Corvo authored and GitHub committed 2025-03-12 08:29:54 -07:00
1 parent 34a670f8d7
commit e8fc6d163b
264 files changed
+264 -264

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@
*/
import BaseOIDCAuthenticator from 'auth/authenticators/oidc';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
/**
* An OIDC authenticator that handles flow kick-off and polling.
+1 -1
View File
@@ -4,7 +4,7 @@
*/
import BasePasswordAuthenticator from 'auth/authenticators/password';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
/**
* A username/password authenticator that authenticates with
@@ -4,7 +4,7 @@
*/
import Component from '@glimmer/component';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
import { action } from '@ember/object';
import { assert } from '@ember/debug';
@@ -4,7 +4,7 @@
*/
import Component from '@glimmer/component';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
import { action } from '@ember/object';
/**
+1 -1
View File
@@ -4,7 +4,7 @@
*/
import Helper from '@ember/component/helper';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
/**
* Takes a `Day` instance and returns in year format if there are no remainders,
@@ -4,7 +4,7 @@
*/
import Helper from '@ember/component/helper';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
import { DurationFormat } from '@formatjs/intl-durationformat';
import { secondsToDuration } from 'core/utils/seconds-to-duration';
@@ -4,7 +4,7 @@
*/
import Helper from '@ember/component/helper';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
import { getOwner } from '@ember/application';
import { action } from '@ember/object';
+1 -1
View File
@@ -4,7 +4,7 @@
*/
import Helper from '@ember/component/helper';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
/**
* This helper returns true or false based on the state of the ember-loading
@@ -4,7 +4,7 @@
*/
import Helper from '@ember/component/helper';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
const MILLISECOND = 1;
const SECOND = MILLISECOND * 1000;
+1 -1
View File
@@ -4,7 +4,7 @@
*/
import Helper from '@ember/component/helper';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
import { getOwner } from '@ember/application';
import { action } from '@ember/object';
@@ -4,7 +4,7 @@
*/
import Helper from '@ember/component/helper';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
export function reverseIndexedDisplayName(intl, translation, array, item) {
const length = array.length;
+1 -1
View File
@@ -4,7 +4,7 @@
*/
import Helper from '@ember/component/helper';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
import { DurationFormat } from '@formatjs/intl-durationformat';
import { secondsToDuration } from 'core/utils/seconds-to-duration';
+1 -1
View File
@@ -12,7 +12,7 @@
*/
import Helper from '@ember/component/helper';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';
export default class extends Helper {
// =services