UNPKG

593 BJavaScriptView Raw
1import { deprecate } from '@ember/debug';
2function initializeStore(application) {
3 application.registerOptionsForType('serializer', {
4 singleton: false
5 });
6 application.registerOptionsForType('adapter', {
7 singleton: false
8 });
9}
10function setupContainer(application) {
11 initializeStore(application);
12}
13deprecate('Importing from `ember-data/setup-container` is deprecated without replacement', false, {
14 id: 'ember-data:deprecate-legacy-imports',
15 for: 'ember-data',
16 until: '6.0',
17 since: {
18 enabled: '5.2',
19 available: '5.2'
20 }
21});
22export { setupContainer as default };
\No newline at end of file