Passing custom parameters to the template
Hi,
I want simply pass to the registration template, somes custom variables, but I don't know how to do !
Here the code of the controller :
/**
* @Route("/register", name="company_registration")
*/
public function registrationCompanyAction(Request $request)
{
return $this->container
->get('pugx_multi_user.registration_manager')
->register('AppBundle\Entity\Company');
}
Where can I do ?
Thank you !
There is a solution in an old (closed) issue. https://github.com/PUGX/PUGXMultiUserBundle/issues/35. Sadly it requires you to patch the core file RegistrationManager.php.
I would like to see this feature in the official repo too!
@greg-man feel free to do a PR ;-)
If I only knew how ... :-)
Finally I tried, but the commit didn't pass the tests. I don't have an experience n unit testing so what can I do?
Tests are failing only on php 5.3 for a reason that tbh I don't know. I'm investigating.
Anyway have a look on my last comment here https://github.com/PUGX/PUGXMultiUserBundle/pull/90#issuecomment-123651641
Ok fixed.
Did you really fixed it ? Master does not seem to embedded the new feature.