Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing custom parameters to the template #78

Open
anthony-bernardo opened this issue Dec 25, 2014 · 7 comments
Open

Passing custom parameters to the template #78

anthony-bernardo opened this issue Dec 25, 2014 · 7 comments

Comments

@anthony-bernardo
Copy link

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 !

@greg-man
Copy link

There is a solution in an old (closed) issue. #35. Sadly it requires you to patch the core file RegistrationManager.php.

I would like to see this feature in the official repo too!

@leopro
Copy link
Member

leopro commented Jul 21, 2015

@greg-man feel free to do a PR ;-)

@greg-man
Copy link

If I only knew how ... :-)

@greg-man
Copy link

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?

@leopro
Copy link
Member

leopro commented Jul 22, 2015

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 #90 (comment)

@leopro
Copy link
Member

leopro commented Jul 22, 2015

Ok fixed.

@gelhaimer
Copy link

Did you really fixed it ? Master does not seem to embedded the new feature.

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

No branches or pull requests

4 participants