File tree 1 file changed +15
-1
lines changed
packages/@ember/-internals/routing/lib/location
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 1
- import { assert } from '@ember/debug' ;
1
+ import { assert , deprecate } from '@ember/debug' ;
2
2
3
3
export interface EmberLocation {
4
4
implementation : string ;
@@ -111,6 +111,20 @@ export default {
111
111
Boolean ( implementationClass )
112
112
) ;
113
113
114
+ deprecate (
115
+ "Calling `create` on Location class is deprecated. Instead, use `container.lookup('location:my-location')` to lookup the location you need." ,
116
+ false ,
117
+ {
118
+ id : 'deprecate-auto-location' ,
119
+ until : '4.0.0' ,
120
+ url : 'https://emberjs.com/deprecations/v3.x#toc_deprecate-auto-location' ,
121
+ for : 'ember-source' ,
122
+ since : {
123
+ enabled : '3.28.1' ,
124
+ } ,
125
+ }
126
+ ) ;
127
+
114
128
return implementationClass . create ( ...arguments ) ;
115
129
} ,
116
130
You can’t perform that action at this time.
0 commit comments