vendor/captcha-com/symfony-captcha-bundle/DependencyInjection/Configuration.php line 19

Open in your IDE?
  1. <?php
  2. namespace Captcha\Bundle\CaptchaBundle\DependencyInjection;
  3. use Captcha\Bundle\CaptchaBundle\Support\Path;
  4. use Symfony\Component\Config\Definition\Builder\TreeBuilder;
  5. use Symfony\Component\Config\Definition\ConfigurationInterface;
  6. class Configuration implements ConfigurationInterface
  7. {
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  11.     public function getConfigTreeBuilder()
  12.     {
  13.         $captchaLibPathDefault Path::getDefaultLibPackageDirPath();
  14.         $treeBuilder = new TreeBuilder();
  15.         $rootNode $treeBuilder->root('captcha');
  16.         $rootNode
  17.             ->children()
  18.                 ->variableNode('botdetect_captcha_path')->defaultValue($captchaLibPathDefault)->end()
  19.                 ->variableNode('captchaConfig')->defaultValue(null)->end()
  20.                 ->variableNode('captchaStyleName')->defaultValue(null)->end()
  21.             ->end()
  22.         ;
  23.         return $treeBuilder;
  24.     }
  25. }