vendor/nzo/url-encryptor-bundle/DependencyInjection/Configuration.php line 29

Open in your IDE?
  1. <?php
  2. /*
  3.  * Configuration file.
  4.  *
  5.  * (c) Ala Eddine Khefifi <alakhefifi@gmail.com>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace Nzo\UrlEncryptorBundle\DependencyInjection;
  11. use Symfony\Component\Config\Definition\Builder\TreeBuilder;
  12. use Symfony\Component\Config\Definition\ConfigurationInterface;
  13. /**
  14.  * Class Configuration
  15.  * @package Nzo\UrlEncryptorBundle\DependencyInjection
  16.  */
  17. class Configuration implements ConfigurationInterface
  18. {
  19.     /**
  20.      * {@inheritDoc}
  21.      */
  22.     public function getConfigTreeBuilder()
  23.     {
  24.         $treeBuilder = new TreeBuilder();
  25.         $rootNode $treeBuilder->root('nzo_url_encryptor');
  26.         $rootNode->children()
  27.             ->scalarNode('secret_key')->defaultValue('')->end()
  28.             ->scalarNode('secret_iv')->defaultValue('')->end()
  29.             ->scalarNode('cipher_algorithm')->defaultValue('')->end()
  30.             ->end();
  31.         return $treeBuilder;
  32.     }
  33. }