Skip to content

Commit

Permalink
Merge pull request #1075 from simonihmig/fix-3x-deprecations
Browse files Browse the repository at this point in the history
Fix implicit injection deprecation
  • Loading branch information
mansona authored Jan 8, 2024
2 parents 7d510ad + f5a689b commit 84599c7
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 0 deletions.
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

0 comments on commit 84599c7

Please sign in to comment.