Champs-Libres /
wopi-bundle
| 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(): TreeBuilder |
||
| 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 | ->enumNode('version_management')->values(['version', 'timestamp']) |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 29 | ->info('Manager document versioning through version (Office 365) or last modified time (Collabora Online, CODE, etc.)') |
||
| 30 | ->defaultValue('timestamp') |
||
| 31 | ->end() |
||
| 32 | ->booleanNode('enable_lock')->defaultTrue()->end() |
||
| 33 | ->end(); |
||
| 34 | |||
| 35 | return $treeBuilder; |
||
| 36 | } |
||
| 37 | } |
||
| 38 |