Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/preprodparkur' into ofaj
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoDucou committed Oct 27, 2022
2 parents 656dedb + c480b97 commit 1e85277
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ public function registerBundles()
/*new Bazinga\Bundle\FakerBundle\BazingaFakerBundle(),
//new Chamilo\CmsBundle\ChamiloCmsBundle(),
*/
new Lunetics\LocaleBundle\LuneticsLocaleBundle()
new Lunetics\LocaleBundle\LuneticsLocaleBundle(),
new Gregwar\CaptchaBundle\GregwarCaptchaBundle()
);

if (in_array($this->getEnvironment(), array('dev', 'test'))) {
Expand Down
2 changes: 1 addition & 1 deletion app/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ knp_menu:
# client_id: <client_id>
# client_secret: <client_secret>

#gregwar_captcha:
gregwar_captcha: ~

# Doctrine audit
sonata_doctrine_orm_admin:
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@
"symfony/dom-crawler": "~2.8",
"brumann/polyfill-unserialize": "^1.0",
"yuloh/bccomp-polyfill": "dev-master",
"thenetworg/oauth2-azure": "^1.4"
"thenetworg/oauth2-azure": "^1.4",
"gregwar/captcha-bundle": "2.0"
},
"require-dev": {
"behat/behat": "@stable",
Expand Down
7 changes: 7 additions & 0 deletions src/Chamilo/ContactBundle/Form/Type/ContactType.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

namespace Chamilo\ContactBundle\Form\Type;

use Gregwar\CaptchaBundle\Type\CaptchaType;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
Expand Down Expand Up @@ -40,6 +41,12 @@ public function buildForm(FormBuilderInterface $builder, array $options)
->add('message', 'textarea')
// Ofaj
->add('gdpr_checkbox', CheckboxType::class, ['mapped' => false])
->add('captcha', CaptchaType::class,
[
'width' => 200,
'height' => 50,
'length' => 6
])
/*->add(
'gdpr_textarea',
'textarea',
Expand Down

0 comments on commit 1e85277

Please sign in to comment.