Skip to content

Cleanup @ember/service deprecation #1095

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ember-file-upload/src/components/file-dropzone.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Component from '@glimmer/component';
import { inject as service } from '@ember/service';
import * as s from '@ember/service';
import { getOwner } from '@ember/application';
import DataTransferWrapper from '../system/data-transfer-wrapper.ts';
import { action } from '@ember/object';
Expand All @@ -14,6 +14,8 @@ import {
} from '../interfaces.ts';
import DragListenerModifier from '../system/drag-listener-modifier.ts';

const service = s.service ?? s.inject;

/**
`FileDropzone` is a component that will allow users to upload files by
drag and drop.
Expand Down
4 changes: 3 additions & 1 deletion ember-file-upload/src/helpers/file-queue.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import Helper from '@ember/component/helper';
import { registerDestructor } from '@ember/destroyable';
import { inject as service } from '@ember/service';
import * as s from '@ember/service';
import type { UploadFile } from '../upload-file.ts';
import type FileQueueService from '../services/file-queue.ts';
import { DEFAULT_QUEUE } from '../services/file-queue.ts';
import type { FileQueueSignature, QueueListener } from '../interfaces.ts';

const service = s.service ?? s.inject;

/**
* `file-queue` helper is one of the core primitives of ember-file-upload.
*
Expand Down
Loading