{"action":"opened","issue":{"url":"https://api.github.com/repos/emberjs/guides/issues/681","labels_url":"https://api.github.com/repos/emberjs/guides/issues/681/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/guides/issues/681/comments","events_url":"https://api.github.com/repos/emberjs/guides/issues/681/events","html_url":"https://github.com/emberjs/guides/issues/681","id":103966745,"number":681,"title":"Service eager injection section is incorrect","user":{"login":"foxnewsnetwork","id":1010423,"avatar_url":"https://avatars.githubusercontent.com/u/1010423?v=3","gravatar_id":"","url":"https://api.github.com/users/foxnewsnetwork","html_url":"https://github.com/foxnewsnetwork","followers_url":"https://api.github.com/users/foxnewsnetwork/followers","following_url":"https://api.github.com/users/foxnewsnetwork/following{/other_user}","gists_url":"https://api.github.com/users/foxnewsnetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/foxnewsnetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foxnewsnetwork/subscriptions","organizations_url":"https://api.github.com/users/foxnewsnetwork/orgs","repos_url":"https://api.github.com/users/foxnewsnetwork/repos","events_url":"https://api.github.com/users/foxnewsnetwork/events{/privacy}","received_events_url":"https://api.github.com/users/foxnewsnetwork/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-31T00:49:35Z","updated_at":"2015-08-31T00:49:35Z","closed_at":null,"body":"To content at:\r\nhttp://guides.emberjs.com/v2.0.0/services/#toc_injecting-services-eagerly\r\n\r\nSuggests that:\r\n`app/instance-initializers/whatever.js`\r\n```js\r\napplication.inject('route', 'cart', 'service:shopping-cart');\r\n```\r\n\r\nIs the proper way of eagerly doing a service injection.\r\n\r\nThis is incorrect because the instance of app passed to an instance-initializer doesn't have the `inject/3` method.\r\n\r\nThe correct way of doing this is with the regular initializer like so:\r\n\r\n`app/initializers/whatever.js`\r\n```js\r\n(container, application) => application.inject(\"route\", \"cart\", \"service:shopping-cart\");\r\n```\r\n\r\nIf no one else is already working on it and EmberJS isn't planning changing up the initializer stack so that instance-initializers have inject, I would like make the correction to the guides and submit a PR."}}