mremi / ContactBundle

Provides a contact form for a Symfony project.
27 stars 23 forks source link

Add posibility to change the action URL #42

Closed firestorm23 closed 8 years ago

firestorm23 commented 8 years ago

Hi. Can you please add posibility to change the route that used to submit the form? I mean, I can alter controller and view for the contact form, but your factory does not provide a way to pass my own action URL.

'createForm' method in 'Mremi\ContactBundle\Form\Factory\FormFactory' looks like this

    public function createForm($data = null)
    {
        return $this->formFactory->createNamed($this->name, $this->type, $data, array(
            'validation_groups' => $this->validationGroups,
        ));
    }

Or I can make a PR, that is not so complex change.

firestorm23 commented 8 years ago

Nvm, you can close it, action in your bundle is set in view.

mremi commented 8 years ago

Hi @firestorm23, absolutely ;)