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 | |||
8 | declare(strict_types=1); |
||
9 | |||
10 | namespace ChampsLibres\WopiBundle\DependencyInjection; |
||
11 | |||
12 | use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
||
13 | use Symfony\Component\Config\Definition\ConfigurationInterface; |
||
14 | |||
15 | final class Configuration implements ConfigurationInterface |
||
16 | { |
||
17 | public function getConfigTreeBuilder() |
||
18 | { |
||
19 | $treeBuilder = new TreeBuilder('wopi'); |
||
20 | |||
21 | /** @var \Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition $rootNode */ |
||
22 | $rootNode = $treeBuilder->getRootNode(); |
||
23 | |||
24 | /** @phpstan-ignore-next-line */ |
||
25 | $rootNode |
||
26 | ->children() |
||
27 | ->scalarNode('server')->end() |
||
28 | ->scalarNode('access_token_ttl')->end() |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
29 | ->enumNode('version_management')->values(['version', 'timestamp']) |
||
30 | ->info('Manager document versioning through version (Office 365) or last modified time (Collabora Online, CODE, etc.)') |
||
31 | ->defaultValue('timestamp') |
||
32 | ->end() |
||
33 | ->end(); |
||
34 | |||
35 | return $treeBuilder; |
||
36 | } |
||
37 | } |
||
38 |