Skip to content
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

Fix implicit injection deprecation #1075

Merged
merged 1 commit into from
Jan 8, 2024
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
3 changes: 3 additions & 0 deletions app/routes/community/meetups/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';

export default class CommunityMeetupsIndexRoute extends Route {
@service store;

model() {
return this.store.findAll('meetup');
}
Expand Down
3 changes: 3 additions & 0 deletions app/routes/ember-users.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';

export default class EmberUsersRoute extends Route {
@service store;

model() {
return this.store.findAll('user');
}
Expand Down
3 changes: 3 additions & 0 deletions app/routes/learn.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';

export default class LearnRoute extends Route {
@service store;

model() {
return this.store.findAll('showcase');
}
Expand Down
3 changes: 3 additions & 0 deletions app/routes/mascots.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';

export default class MascotsRoute extends Route {
@service store;

model() {
return this.store.findAll('tomster');
}
Expand Down
3 changes: 3 additions & 0 deletions app/routes/releases.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';

export default class ReleasesRoute extends Route {
@service store;

model() {
return this.store.findAll('project');
}
Expand Down
3 changes: 3 additions & 0 deletions app/routes/releases/beta.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { hash } from 'rsvp';
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';

export default class ReleasesBetaRoute extends Route {
@service store;

model() {
return hash({
ember: this.store.find('project', 'ember/beta'),
Expand Down
3 changes: 3 additions & 0 deletions app/routes/releases/canary.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import Route from '@ember/routing/route';
import fetch from 'fetch';
import { hash } from 'rsvp';
import { inject as service } from '@ember/service';

export default class ReleasesCanaryRoute extends Route {
@service store;

model() {
return hash({
ember: this.store.find('project', 'ember/canary'),
Expand Down
3 changes: 3 additions & 0 deletions app/routes/releases/lts.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';

export default class ReleasesLtsRoute extends Route {
@service store;

model() {
return this.store.find('project', 'ember/lts');
}
Expand Down
3 changes: 3 additions & 0 deletions app/routes/releases/release.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { hash } from 'rsvp';
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';

export default class ReleasesReleaseRoute extends Route {
@service store;

model() {
return hash({
ember: this.store.find('project', 'ember/release'),
Expand Down
3 changes: 3 additions & 0 deletions app/routes/sponsors.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import Route from '@ember/routing/route';
import { hash } from 'rsvp';
import { inject as service } from '@ember/service';

export default class SponsorsRoute extends Route {
@service store;

model() {
return hash({
sponsors: this.store.findAll('sponsor'),
Expand Down
3 changes: 3 additions & 0 deletions app/routes/teams.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';

export default class TeamsRoute extends Route {
@service store;

model() {
return this.store.findAll('team-member');
}
Expand Down
Loading