| Code Coverage | ||||||||||
| Lines | Functions and Methods | Classes and Traits | ||||||||
| Total |  | 100.00% | 12 / 12 |  | 100.00% | 3 / 3 | CRAP |  | 100.00% | 1 / 1 | 
| Configuration |  | 100.00% | 12 / 12 |  | 100.00% | 3 / 3 | 4 |  | 100.00% | 1 / 1 | 
| getConfigTreeBuilder |  | 100.00% | 8 / 8 |  | 100.00% | 1 / 1 | 2 | |||
| addCmsOptions |  | 100.00% | 3 / 3 |  | 100.00% | 1 / 1 | 1 | |||
| addApiOptions |  | 100.00% | 1 / 1 |  | 100.00% | 1 / 1 | 1 | |||
| 1 | <?php | 
| 2 | |
| 3 | namespace Apie\ApieBundle\DependencyInjection; | 
| 4 | |
| 5 | use Apie\Common\Config\Configuration as CommonConfiguration; | 
| 6 | use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; | 
| 7 | use Symfony\Component\Config\Definition\Builder\TreeBuilder; | 
| 8 | |
| 9 | final class Configuration extends CommonConfiguration | 
| 10 | { | 
| 11 | public function getConfigTreeBuilder(): TreeBuilder | 
| 12 | { | 
| 13 | $tree = parent::getConfigTreeBuilder(); | 
| 14 | |
| 15 | $children = $tree->getRootNode()->children(); | 
| 16 | |
| 17 | $children | 
| 18 | ->booleanNode('enable_messenger')->defaultValue(class_exists('Symfony\Component\Messenger\MessageBusInterface'))->end() | 
| 19 | ->booleanNode('enable_profiler')->defaultValue(true)->end() | 
| 20 | ->booleanNode('enable_doctrine_bundle_connection')->defaultValue(class_exists('Apie\DoctrineEntityDatalayer\DoctrineEntityDatalayer') && class_exists('Doctrine\Bundle\DoctrineBundle\DoctrineBundle'))->end() | 
| 21 | ->booleanNode('enable_security')->defaultValue(class_exists('Symfony\Bundle\SecurityBundle\SecurityBundle'))->end(); | 
| 22 | return $tree; | 
| 23 | } | 
| 24 | |
| 25 | protected function addCmsOptions(ArrayNodeDefinition $arrayNode): void | 
| 26 | { | 
| 27 | $arrayNode->children() | 
| 28 | ->scalarNode('dashboard_template')->defaultValue('@Apie/dashboard.html.twig')->end() | 
| 29 | ->scalarNode('error_template')->defaultValue('@Apie/error.html.twig')->end(); | 
| 30 | } | 
| 31 | |
| 32 | protected function addApiOptions(ArrayNodeDefinition $arrayNode): void | 
| 33 | { | 
| 34 | } | 
| 35 | } |