Skip to content

Instantly share code, notes, and snippets.

@umpirsky
Created September 27, 2012 10:25
Show Gist options
  • Save umpirsky/3793340 to your computer and use it in GitHub Desktop.
Save umpirsky/3793340 to your computer and use it in GitHub Desktop.
Register custom form field type in Silex
<?php
$this->share($this->extend('form.factory', function (FormFactoryInterface $factory) {
$factory->addType(new MyType());
return $factory;
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment