| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * For the full copyright and license information, please view |
||
| 5 | * the LICENSE file that was distributed with this source code. |
||
| 6 | * |
||
| 7 | * @see https://github.com/ecphp |
||
| 8 | */ |
||
| 9 | |||
| 10 | declare(strict_types=1); |
||
| 11 | |||
| 12 | namespace EcPhp\ReverseProxyHelperBundle\DependencyInjection; |
||
| 13 | |||
| 14 | use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
||
| 15 | use Symfony\Component\Config\Definition\ConfigurationInterface; |
||
| 16 | |||
| 17 | final class Configuration implements ConfigurationInterface |
||
| 18 | { |
||
| 19 | 1 | public function getConfigTreeBuilder() |
|
| 20 | { |
||
| 21 | 1 | $treeBuilder = new TreeBuilder('reverse_proxy_helper'); |
|
| 22 | |||
| 23 | /** @var \Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition $rootNode */ |
||
| 24 | 1 | $rootNode = $treeBuilder->getRootNode(); |
|
| 25 | |||
| 26 | /** @phpstan-ignore-next-line */ |
||
| 27 | $rootNode |
||
| 28 | 1 | ->children() |
|
| 29 | 1 | ->scalarNode('base_url')->defaultValue('')->end() |
|
| 30 | 1 | ->end(); |
|
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 31 | |||
| 32 | 1 | return $treeBuilder; |
|
| 33 | } |
||
| 34 | } |
||
| 35 |