{"action":"closed","issue":{"url":"https://api.github.com/repos/stof/StofDoctrineExtensionsBundle/issues/289","labels_url":"https://api.github.com/repos/stof/StofDoctrineExtensionsBundle/issues/289/labels{/name}","comments_url":"https://api.github.com/repos/stof/StofDoctrineExtensionsBundle/issues/289/comments","events_url":"https://api.github.com/repos/stof/StofDoctrineExtensionsBundle/issues/289/events","html_url":"https://github.com/stof/StofDoctrineExtensionsBundle/issues/289","id":99818498,"number":289,"title":"Override FormType","user":{"login":"nasrithamer","id":13709609,"avatar_url":"https://avatars.githubusercontent.com/u/13709609?v=3","gravatar_id":"","url":"https://api.github.com/users/nasrithamer","html_url":"https://github.com/nasrithamer","followers_url":"https://api.github.com/users/nasrithamer/followers","following_url":"https://api.github.com/users/nasrithamer/following{/other_user}","gists_url":"https://api.github.com/users/nasrithamer/gists{/gist_id}","starred_url":"https://api.github.com/users/nasrithamer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nasrithamer/subscriptions","organizations_url":"https://api.github.com/users/nasrithamer/orgs","repos_url":"https://api.github.com/users/nasrithamer/repos","events_url":"https://api.github.com/users/nasrithamer/events{/privacy}","received_events_url":"https://api.github.com/users/nasrithamer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-08T17:16:49Z","updated_at":"2015-08-12T14:13:27Z","closed_at":"2015-08-12T14:13:27Z","body":"Hello , i want to override a bundle how i download it \r\ni have the same error can you help me plz \r\n \r\nUnrecognized option \"contact_custom\" under \"mremi_contact\"\r\n\r\nmy class is : \r\n<?php\r\n\r\n/*\r\n * This file is part of the Mremi\\ContactBundle Symfony bundle.\r\n *\r\n * (c) Rémi Marseille <marseille.remi@gmail.com>\r\n *\r\n * For the full copyright and license information, please view the LICENSE\r\n * file that was distributed with this source code.\r\n */\r\n\r\nnamespace Common\\ContactBundle\\Form\\Type;\r\n\r\nuse Mremi\\ContactBundle\\Model\\Contact;\r\nuse Mremi\\ContactBundle\\Provider\\SubjectProviderInterface;\r\nuse Symfony\\Component\\Form\\AbstractType;\r\nuse Symfony\\Component\\Form\\FormBuilderInterface;\r\nuse Symfony\\Component\\OptionsResolver\\OptionsResolverInterface;\r\n\r\n/**\r\n * Contact type class\r\n *\r\n * @author Rémi Marseille <marseille.remi@gmail.com>\r\n */\r\nclass ContactType extends AbstractType {\r\n\r\n    public function buildForm(FormBuilderInterface $builder, array $options) {\r\n        $builder\r\n                ->add('firstName', 'text', array('label' => 'mremi_contact.form.first_name'))\r\n                ->add('lastName', 'text', array('label' => 'mremi_contact.form.last_name'))\r\n                ->add('email', 'email', array('label' => 'mremi_contact.form.email'));\r\n\r\n        if ($subjects = $this->subjectProvider->getSubjects()) {\r\n            $builder\r\n                    ->add('subject', 'choice', array(\r\n                        'choices' => $subjects,\r\n                        'label' => 'mremi_contact.form.subject',\r\n            ));\r\n        } else {\r\n            $builder->add('subject', 'text', array('label' => 'mremi_contact.form.subject'));\r\n        }\r\n\r\n        $builder->add('message', 'textarea', array('label' => 'mremi_contact.form.message'));\r\n\r\n        if ($this->captchaType) {\r\n            $builder->add('captcha', $this->captchaType, array(\r\n                'label' => 'mremi_contact.form.captcha',\r\n                'mapped' => false,\r\n            ));\r\n        }\r\n\r\n        $builder->add('save', 'submit', array('label' => 'mremi_contact.form_submit'));\r\n    }\r\n\r\n    public function getParent() {\r\n        return 'mremi_contact';\r\n    }\r\n\r\n    public function getName() {\r\n        return 'mremi_contact_custom_contact';\r\n    }\r\n\r\n}\r\n-------------------------------------------------------------------------\r\nthe app/config/config.yml\r\n\r\n/*.....*/\r\n# Mremi ContactBundle\r\nmremi_contact:\r\n    \r\n    contact_custom:\r\n        form:\r\n            type: mremi_contact_contact_custom\r\n    form:\r\n        type:              mremi_contact\r\n        name:              contact_form\r\n        validation_groups: [Default]\r\n        subject_provider:  mremi_contact.subject_provider.noop\r\n        captcha_type:      ewz_recaptcha\r\n\r\n    email:\r\n        mailer:            mremi_contact.mailer.twig_swift\r\n        from:              []\r\n        to:                \r\n            - { address: thamer.nasri@gmail.com }\r\n        template:          MremiContactBundle:Contact:email.txt.twig\r\n-----------------------------------------------------------------------------------------------------\r\nthe file ContactBundle\\Resources\\config\\services.yml\r\n\r\nservices:\r\n    mremi_contact.contact_custom.form.type:\r\n        class: Common\\ContactBundle\\Form\\Type\\ContactType\r\n        tags:\r\n            - { name: form.type, alias: mremi_contact_contact_custom }\r\n--------------------------------------------------------------------------------------------\r\n\r\nMy question is : how to override a FormType or Controller or Templates ... to do some specific logic\r\n\r\ni do it with with fos userbundle and its ok but with this bundle its not "}}