PHP code example of friendsoforo / oro-recaptcha-bundle
1. Go to this page and download the library: Download friendsoforo/oro-recaptcha-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
friendsoforo / oro-recaptcha-bundle example snippets
namespace Acme\CustomBundle\Form\Extension;
use Acme\CustomBundle\Form\Type\CustomPageType;
class CustomPageTypeExtension extends AbstractRecaptchaTypeExtension
{
public function getExtendedType()
{
// The Form Type we are extending
return CustomPageType::class;
}
/**
* Protect the Custom Page Form?
* @return boolean
*/
public function isProtected()
{
// Replace this with a configuration option if needed
return true;
}
}