View more context

 

Mo

So, I have a module installed with a config.yml named:

  1. ---
  2. Name: orderconfig
  3. ---
Mo

In my app folder (mysite), if I add:

  1. ---
  2. Name: app
  3. After:
  4. - 'framework/*'
  5. - 'cms/*'
  6. - 'orderconfig/*'
  7. ---
Mo

does this mean my config should be loaded after the module?

Mo

so my custom updateCMSFields() gets called after the module's?

Dennis Basa Guinto

It's just a priority thing for config values. Doesn't affect when a module is being loaded.

Dennis Basa Guinto

E.g.

  1. ---
  2. Name: orderconfig
  3. ---
  4. foo: bar

  1. ---
  2. Name: app
  3. After:
  4. - 'orderconfig/*'
  5. ---
  6. foo: baz