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

Add form options, controller template arrays #95

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

truckee
Copy link

@truckee truckee commented Nov 4, 2015

This PR adds the ability to send config.yml options to registration and profile forms. It also adds the ability to add business logic to registration and profile controllers. These controllers have ready access to the container, making it possible to create an array of templates based on a set of conditions. The templates array is then passed to the registration & profile templates. See the updated documentation for details.

ProfileController $controller,
FormFactory $formFactory
) {
UserDiscriminator $userDiscriminator, ContainerInterface $container,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is useless and against PSR-2. Please restore previous line splitting.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Restored.
From: Massimiliano Arione notifications@github.com
To: PUGX/PUGXMultiUserBundle PUGXMultiUserBundle@noreply.github.com
Cc: George Brooks truckeetrout@yahoo.com
Sent: Thursday, November 5, 2015 12:10 AM
Subject: Re: [PUGXMultiUserBundle] Add form options, controller template arrays (#95)

In Controller/ProfileManager.php:> @@ -36,29 +37,28 @@ class ProfileManager

  * @param FormFactory $formFactory
  */
 public function __construct(
  •    UserDiscriminator $userDiscriminator,
    
  •    ContainerInterface $container,
    
  •    ProfileController $controller,
    
  •    FormFactory $formFactory
    
  • ) {
  • UserDiscriminator $userDiscriminator, ContainerInterface $container,
    This change is useless and against PSR-2. Please restore previous line splitting.—
    Reply to this email directly or view it on GitHub.

@truckee truckee closed this Nov 7, 2015
@truckee truckee reopened this Nov 7, 2015
@truckee
Copy link
Author

truckee commented Nov 7, 2015

Please note: ProfileManager, RegistrationManager have been checked by php-cs-fixer psr-2.

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

Successfully merging this pull request may close these issues.

2 participants