@@ -176,7 +176,7 @@ in the template__:
176176``` js
177177// app/controllers/application.js
178178import Controller from ' @ember/controller' ;
179- import { inject as service } from ' @ember/service' ;
179+ import { service } from ' @ember/service' ;
180180
181181export default class ApplicationController extends Controller {
182182 @service session;
@@ -207,7 +207,7 @@ to invalidate the session__ and log the user out:
207207``` js
208208// app/controllers/application.js
209209import Controller from ' @ember/controller' ;
210- import { inject as service } from ' @ember/service' ;
210+ import { service } from ' @ember/service' ;
211211import { action } from " @ember/object" ;
212212
213213export default class ApplicationController extends Controller {
@@ -258,7 +258,7 @@ the __session can be authenticated with the
258258``` js
259259// app/controllers/login.js
260260import Controller from ' @ember/controller' ;
261- import { inject as service } from ' @ember/service' ;
261+ import { service } from ' @ember/service' ;
262262import { action } from " @ember/object" ;
263263import { tracked } from " @glimmer/tracking" ;
264264
@@ -301,7 +301,7 @@ method in the respective route's `beforeModel` method:
301301``` js
302302// app/routes/authenticated.js
303303import Route from ' @ember/routing/route' ;
304- import { inject as service } from ' @ember/service' ;
304+ import { service } from ' @ember/service' ;
305305
306306export default class AuthenticatedRoute extends Route {
307307 @service session;
@@ -345,7 +345,7 @@ method in the respective route's `beforeModel` method:
345345``` js
346346// app/routes/login.js
347347import Route from ' @ember/routing/route' ;
348- import { inject as service } from ' @ember/service' ;
348+ import { service } from ' @ember/service' ;
349349
350350export default class LoginRoute extends Route {
351351 @service session;
@@ -378,7 +378,7 @@ authentication/authorization data, e.g. a token:
378378// app/adapters/application.js
379379import JSONAPIAdapter from ' @ember-data/adapter/json-api' ;
380380import { computed } from ' @ember/object' ;
381- import { inject as service } from ' @ember/service' ;
381+ import { service } from ' @ember/service' ;
382382
383383export default class ApplicationAdapter extends JSONAPIAdapter {
384384 @service session;
@@ -672,7 +672,7 @@ done by passing a callback instead of a route name to the session service's
672672``` js
673673// my-engine/addon/routes/index.js
674674import Route from ' @ember/routing/route' ;
675- import { inject as service } from ' @ember/service' ;
675+ import { service } from ' @ember/service' ;
676676
677677export default class IndexRoute extends Route {
678678 @service session;
0 commit comments