Skip to content

Instantly share code, notes, and snippets.

@oste
Created April 15, 2013 02:15
Show Gist options
  • Save oste/5385226 to your computer and use it in GitHub Desktop.
Save oste/5385226 to your computer and use it in GitHub Desktop.
override foscommentbundle CommentType
services:
fos_comment.form_type.comment.default:
class: App\Form\CommentType
tags: [{ name: form.type, alias: fos_comment_comment }]
@andrew-jones
Copy link

Cheers for this gist, not sure if it has changed since you created this but you now need to include an argument for the constructor.

class: App\Form\CommentType
tags: [{ name: form.type, alias: fos_comment_comment }]
arguments: [ "%fos_comment.model.comment.class%" ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment