mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 22:56:05 +08:00
DEV: Add more details to getOwner deprecation (#25309)
Co-authored-by: David Taylor <david@taylorhq.com>
This commit is contained in:
parent
a417760337
commit
cbe4b3d7d8
@ -23,8 +23,12 @@ export function getOwnerWithFallback(obj) {
|
||||
*/
|
||||
export function getOwner(obj) {
|
||||
deprecated(
|
||||
"Importing getOwner from `discourse-common/lib/get-owner` is deprecated. Use `import { getOwner } from '@ember/application'`, or if you still need the fallback shim, use `import { getOwnerWithFallback } from 'discourse-common/lib/get-owner';`.",
|
||||
{ since: "3.2", id: "discourse.get-owner-with-fallback" }
|
||||
"Importing getOwner from `discourse-common/lib/get-owner` is deprecated. See the alternatives on meta.",
|
||||
{
|
||||
since: "3.2",
|
||||
id: "discourse.get-owner-with-fallback",
|
||||
url: "https://meta.discourse.org/t/292080",
|
||||
}
|
||||
);
|
||||
return getOwnerWithFallback(obj);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user