Skip to content

Bundle Configuration

matteosister edited this page Dec 6, 2014 · 6 revisions

Next (Use it in a controller) ►

The Symfony bundle inside this library is just a thin layer of php code that:

  • register the patch manager as a service in the dependency injection container
  • expose a semantic configuration (that could be easily validated and tweaked by environment)
  • creates an adapter for the Symfony request

If you are ok with the default values you can completely omit this. Here is a full configuration for the bundle with comments and default values:

patch_manager:
    # creates an alias for the service. If you omit this
    # the service will be named patch_manager anyway
    alias: patch_manager 
    # wire the patch manager to the symfony event dispatcher
    dispatch_events: true
    # with strict mode on the patch manager will trigger 
    # an error if no handler is found
    strict_mode: false
    # you can completely omit this
    # if you are ok with the defaults
    handlers:
        # activate the data handler 
        # {"op": "data", ...}
        data:
            #magic calls on property accessor
            magic_call: false
            # enable doctrine features
            doctrine: true
            # entity manager name
            entity_manager: default
        # activate the finite state machine handler
        # {"op": "sm", ...}
        state_machine: ~

Next (Use it in a controller) ►