Skip to content

Instantly share code, notes, and snippets.

@havvg
Created July 26, 2012 15:31
Show Gist options
  • Save havvg/3182733 to your computer and use it in GitHub Desktop.
Save havvg/3182733 to your computer and use it in GitHub Desktop.
alter default FormFlow storage using parent service attribute
services:
ormigo.form.flow:
class: Craue\FormFlowBundle\Form\FormFlow
parent: craue.form.flow
scope: request
calls:
# see https://gist.github.com/3066310
- [ setStorage, [ @ormigo.form.flow.storage.mongodb ] ]
ormigo.form.image_upload.flow:
class: Ormigo\Bundle\OrmigoBundle\Form\ImageUpload\FormFlow
parent: ormigo.form.flow
scope: request
arguments:
- @liip_imagine
calls:
- [ setFormType, [ @ormigo.form.image_upload.form ] ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment