Last active
January 16, 2017 09:53
-
-
Save sokil/9489257d4882ec6d3420 to your computer and use it in GitHub Desktop.
Create symfony form without prefix
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 | |
$formFactory = $this->container->get('form.factory'); | |
$form = $formFactory->createNamed( | |
null, | |
new RegistrationFormType('\Vendor\AcmeBundle\Entity\SomeEntity'), | |
$user, | |
[ | |
'method' => $request->getMethod(), | |
] | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment