Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
1 / 1
LaravelConfiguration
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
1 / 1
 addCmsOptions
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
1
 addApiOptions
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace Apie\LaravelApie\Config;
4
5use Apie\Common\Config\Configuration;
6use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
7
8class LaravelConfiguration extends Configuration
9{
10    protected function addCmsOptions(ArrayNodeDefinition $arrayNode): void
11    {
12        $arrayNode->children()
13            ->scalarNode('dashboard_template')->defaultValue('apie::dashboard')->end()
14            ->scalarNode('error_template')->defaultValue('apie::error')->end()
15            ->arrayNode('laravel_middleware')->defaultValue([])->scalarPrototype()->end();
16    }
17
18    protected function addApiOptions(ArrayNodeDefinition $arrayNode): void
19    {
20        $arrayNode->children()
21            ->arrayNode('laravel_middleware')->defaultValue([])->scalarPrototype()->end();
22    }
23}