// Import the full module to ensure monkey-patches are applied before any store
// instances are created. Sad face for side-effects :(
import 'ember-data-model-fragments';
import FragmentTransform from 'ember-data-model-fragments/transforms/fragment';
import FragmentArrayTransform from 'ember-data-model-fragments/transforms/fragment-array';
import ArrayTransform from 'ember-data-model-fragments/transforms/array';

export default {
  name: 'fragmentTransform',
  before: 'ember-data',

  initialize(application) {
    application.register('transform:fragment', FragmentTransform);
    application.register('transform:fragment-array', FragmentArrayTransform);
    application.register('transform:array', ArrayTransform);
  }
};

@@ -168,253 +168,8 @@
 ts';
-%0Aimport FragmentTransform from 'ember-data-model-fragments/transforms/fragment';%0Aimport FragmentArrayTransform from 'ember-data-model-fragments/transforms/fragment-array';%0Aimport ArrayTransform from 'ember-data-model-fragments/transforms/array';
 %0A%0Aex
@@ -277,32 +277,30 @@
 application.
-register
+inject
 ('transform:
@@ -302,176 +302,35 @@
 form
-:fragment', FragmentTransform);%0A    application.register('transform:fragment-array', FragmentArrayTransform);%0A    application.register('transform:array', ArrayTransform
+', 'store', 'service:store'
 );%0A 

Inject store into transforms