I’m getting a bunch of deprecation warnings about using the initializer API:
DEPRECATION: lookup
was called on a Registry. The initializer
API no longer receives a container, and you should use an instanceInitializer
to look up objects from the container.
There’s an example in the deprecation guide on how to fix this, but how would I fix the following?
export function initialize(container, application) {
application.inject('controller', 'heyman', 'heyman:main');
}
export default {
name: 'setup-heyman',
initialize
};