vendor/shapecode/cron-bundle/src/DependencyInjection/Configuration.php line 23

Open in your IDE?
  1. <?php
  2. namespace Shapecode\Bundle\CronBundle\DependencyInjection;
  3. use Symfony\Component\Config\Definition\Builder\TreeBuilder;
  4. use Symfony\Component\Config\Definition\ConfigurationInterface;
  5. /**
  6.  * Class Configuration
  7.  *
  8.  * @package Shapecode\Bundle\CronBundle\DependencyInjection
  9.  * @author  Nikita Loges
  10.  */
  11. class Configuration implements ConfigurationInterface
  12. {
  13.     /**
  14.      * @inheritDoc
  15.      */
  16.     public function getConfigTreeBuilder()
  17.     {
  18.         $treeBuilder = new TreeBuilder();
  19.         $rootNode $treeBuilder->root('shapecode_cron');
  20.         $rootNode
  21.             ->children()
  22.                 ->arrayNode('results')
  23.                     ->addDefaultsIfNotSet()
  24.                         ->children()
  25.                             ->booleanNode('auto_prune')->defaultTrue()->end()
  26.                             ->scalarNode('interval')->defaultValue('7 days ago')->cannotBeEmpty()->end()
  27.                         ->end()
  28.                     ->end()
  29.                 ->end()
  30.             ->end();
  31.         return $treeBuilder;
  32.     }
  33. }