| Code Coverage | ||||||||||
| Lines | Functions and Methods | Classes and Traits | ||||||||
| Total |  | 100.00% | 11 / 11 |  | 100.00% | 3 / 3 | CRAP |  | 100.00% | 1 / 1 | 
| LaravelConfiguration |  | 100.00% | 11 / 11 |  | 100.00% | 3 / 3 | 3 |  | 100.00% | 1 / 1 | 
| getConfigTreeBuilder |  | 100.00% | 5 / 5 |  | 100.00% | 1 / 1 | 1 | |||
| addCmsOptions |  | 100.00% | 4 / 4 |  | 100.00% | 1 / 1 | 1 | |||
| addApiOptions |  | 100.00% | 2 / 2 |  | 100.00% | 1 / 1 | 1 | |||
| 1 | <?php | 
| 2 | |
| 3 | namespace Apie\LaravelApie\Config; | 
| 4 | |
| 5 | use Apie\Common\Config\Configuration; | 
| 6 | use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; | 
| 7 | use Symfony\Component\Config\Definition\Builder\TreeBuilder; | 
| 8 | use Symfony\Component\Lock\Store\FlockStore; | 
| 9 | |
| 10 | class LaravelConfiguration extends Configuration | 
| 11 | { | 
| 12 | public function getConfigTreeBuilder(): TreeBuilder | 
| 13 | { | 
| 14 | $res = parent::getConfigTreeBuilder(); | 
| 15 | $res->getRootNode() | 
| 16 | ->children() | 
| 17 | ->scalarNode('lock_store')->defaultValue(FlockStore::class)->end(); | 
| 18 | return $res; | 
| 19 | } | 
| 20 | |
| 21 | protected function addCmsOptions(ArrayNodeDefinition $arrayNode): void | 
| 22 | { | 
| 23 | $arrayNode->children() | 
| 24 | ->scalarNode('dashboard_template')->defaultValue('apie::dashboard')->end() | 
| 25 | ->scalarNode('error_template')->defaultValue('apie::error')->end() | 
| 26 | ->arrayNode('laravel_middleware')->defaultValue([])->scalarPrototype()->end(); | 
| 27 | } | 
| 28 | |
| 29 | protected function addApiOptions(ArrayNodeDefinition $arrayNode): void | 
| 30 | { | 
| 31 | $arrayNode->children() | 
| 32 | ->arrayNode('laravel_middleware')->defaultValue([])->scalarPrototype()->end(); | 
| 33 | } | 
| 34 | } |