Created
September 27, 2012 10:25
-
-
Save umpirsky/3793340 to your computer and use it in GitHub Desktop.
Register custom form field type in Silex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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