This is an overview of the available configuration options for ModularBundle.

Full configuration

harmony_modular:
  module_class: null
  module_identifier: null
  route_prefix:
    prefix: '/module'
    defaults: []
    requirements: []
  router:
    resource: # required, needs testing if undefined!
    resource_type: null
  service:
    module_manager: harmony_modular.module_manager.doctrine
    provider: harmony_modular.provider.segment

Configuration options

module_class

type: string default: null

The fully qualified class name of the Module object. If this setting is not present (or is null) the bundle will not be enabled.

module_identifier

type: string default: null

A value used by module managers to identify a module. For example, when using the Doctrine ORM the default value is id. Make sure the getModularIdentity() method of the module object returns the expected value as well.

route_prefix

prefix

type: string default: /module

A routing prefix for all modular routes. To omit the prefix entirely enter /.

You can also set this value directly to route_prefix:

harmony_modular:
  route_prefix: '/module'

defaults

type: array default: array()

requirements

type: array default: array()

router

service


This page was last updated on 16 Jul 2017, at 16:14.