vendor/gesdinet/jwt-refresh-token-bundle/DependencyInjection/Configuration.php line 29

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the GesdinetJWTRefreshTokenBundle package.
  4.  *
  5.  * (c) Gesdinet <http://www.gesdinet.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 Gesdinet\JWTRefreshTokenBundle\DependencyInjection;
  11. use Symfony\Component\Config\Definition\Builder\TreeBuilder;
  12. use Symfony\Component\Config\Definition\ConfigurationInterface;
  13. /**
  14.  * This is the class that validates and merges configuration from your app/config files.
  15.  *
  16.  * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}
  17.  */
  18. class Configuration implements ConfigurationInterface
  19. {
  20.     /**
  21.      * {@inheritdoc}
  22.      */
  23.     public function getConfigTreeBuilder()
  24.     {
  25.         $treeBuilder = new TreeBuilder();
  26.         $rootNode $treeBuilder->root('gesdinet_jwt_refresh_token');
  27.         $rootNode
  28.             ->children()
  29.                 ->integerNode('ttl')->defaultValue(2592000)->end()
  30.                 ->booleanNode('ttl_update')->defaultFalse()->end()
  31.                 ->scalarNode('firewall')->defaultValue('api')->end()
  32.                 ->scalarNode('user_provider')->defaultNull()->end()
  33.                 ->scalarNode('user_identity_field')->defaultValue('username')->end()
  34.                 ->scalarNode('refresh_token_entity')
  35.                     ->defaultNull()
  36.                     ->info('Set another refresh token entity to use instead of default one (Gesdinet\JWTRefreshTokenBundle\Entity\RefreshToken)')
  37.                 ->end()
  38.                 ->scalarNode('entity_manager')
  39.                     ->defaultValue('doctrine.orm.entity_manager')
  40.                     ->info('Set entity manager to use (default: doctrine.orm.entity_manager)')
  41.                 ->end()
  42.             ->end();
  43.         return $treeBuilder;
  44.     }
  45. }