vendor/mgilet/notification-bundle/DependencyInjection/Configuration.php line 21

Open in your IDE?
  1. <?php
  2. /**
  3.  * Project: notification-bundle
  4.  * User: Leandro Luccerini <leandro.luccerini@gmail.com>
  5.  * Date: 08/11/18
  6.  * Time: 9.29
  7.  */
  8. namespace Mgilet\NotificationBundle\DependencyInjection;
  9. use Symfony\Component\Config\Definition\ConfigurationInterface;
  10. use Symfony\Component\Config\Definition\Builder\TreeBuilder;
  11. use Mgilet\NotificationBundle\Entity\NotificationInterface;
  12. class Configuration implements ConfigurationInterface
  13. {
  14.     public function getConfigTreeBuilder()
  15.     {
  16.         $treeBuilder = new TreeBuilder();
  17.         $rootNode $treeBuilder->root('mgilet_notification');
  18.         $rootNode->children()
  19.             ->scalarNode('notification_class')
  20.                 ->cannotBeEmpty()
  21.                 ->defaultValue(NotificationInterface::DEFAULT_NOTIFICATION_ENTITY_CLASS)
  22.             ->end()
  23.         ->end();
  24.         return $treeBuilder;
  25.     }
  26. }