diff --git a/packages/container/lib/container.js b/packages/container/lib/container.js index 62c05610c44..1a431aa18b3 100644 --- a/packages/container/lib/container.js +++ b/packages/container/lib/container.js @@ -521,12 +521,12 @@ const INJECTED_DEPRECATED_CONTAINER_DESC = { configurable: true, enumerable: false, get() { - deprecate('Using the injected `container` is deprecated. Please use the `getOwner` helper instead to access the owner of this object.', false, { id: 'ember-application.injected-container', until: '3.0.0', url: 'http://emberjs.com/deprecations/v2.x#toc_injected-container-access' }); + deprecate('Using the injected `container` is deprecated. Please use the `getOwner` helper instead to access the owner of this object.', false, { id: 'ember-application.injected-container', until: '2.13.0', url: 'http://emberjs.com/deprecations/v2.x#toc_injected-container-access' }); return this[CONTAINER_OVERRIDE] || getOwner(this).__container__; }, set(value) { - deprecate(`Providing the \`container\` property to ${this} is deprecated. Please use \`Ember.setOwner\` or \`owner.ownerInjection()\` instead to provide an owner to the instance being created.`, false, { id: 'ember-application.injected-container', until: '3.0.0', url: 'http://emberjs.com/deprecations/v2.x#toc_injected-container-access' }); + deprecate(`Providing the \`container\` property to ${this} is deprecated. Please use \`Ember.setOwner\` or \`owner.ownerInjection()\` instead to provide an owner to the instance being created.`, false, { id: 'ember-application.injected-container', until: '2.13.0', url: 'http://emberjs.com/deprecations/v2.x#toc_injected-container-access' }); this[CONTAINER_OVERRIDE] = value; @@ -591,7 +591,7 @@ function buildFakeContainerFunction(container, containerProperty, ownerProperty) return function () { deprecate(`Using the injected \`container\` is deprecated. Please use the \`getOwner\` helper to access the owner of this object and then call \`${ownerProperty}\` instead.`, false, { id: 'ember-application.injected-container', - until: '3.0.0', + until: '2.13.0', url: 'http://emberjs.com/deprecations/v2.x#toc_injected-container-access' }); return container[containerProperty](...arguments); diff --git a/packages/ember-application/lib/system/application-instance.js b/packages/ember-application/lib/system/application-instance.js index 410912ca9a5..44be65066e5 100644 --- a/packages/ember-application/lib/system/application-instance.js +++ b/packages/ember-application/lib/system/application-instance.js @@ -503,7 +503,7 @@ Object.defineProperty(ApplicationInstance.prototype, 'container', { 'Using `ApplicationInstance.container.lookup` is deprecated. Please use `ApplicationInstance.lookup` instead.', false, { id: 'ember-application.app-instance-container', - until: '3.0.0', + until: '2.13.0', url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-applicationinstance-container' } );