-
Notifications
You must be signed in to change notification settings - Fork 263
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
Deprecation Warning: Using the injected container
is deprecated.
#396
Comments
Bump! |
Updated deprecated `container.lookup` calls to make use of the favoured `getOwner()` function. Users of Ember 2.3 and above will no longer see deprecation warnings about this.
Agreed would also like to see this fixed |
This seems like it will be ok until Ember 3.0 and a PR with fix was merged into Master on July 7th. So I think if you point to master it will go away until they cut another release. |
As elsewhere, ember-cli-deprecation-workflow is your friend here. |
+1 for this, Still no workaround? |
We're cutting 2.0.2 today, this includes the fix. |
Version info
Steps to reproduce
Use
this.get('session').fetch()
in a beforeModel route hook.Expected behavior
Should not throw a deprecation warning
Actual behavior
Throws the following warning:
I have traced this down to line 38 in the
addon/torii-providers/firebase.js
file:This needs to be changed over to use the
getOwner
method of looking things up.See: http://emberjs.com/deprecations/v2.x/#toc_injected-container-access
The text was updated successfully, but these errors were encountered: