Skip to content

Commit 6a2f6c7

Browse files
committed
Fix config deprecation
1 parent a5b8f53 commit 6a2f6c7

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

docs/default-configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ babdev_websocket:
3131
enabled: false
3232

3333
# The interval, in seconds, which connections are pinged.
34-
interval: 30 # Required
34+
interval: 30
3535
periodic:
3636
dbal:
3737

3838
# A list of "Doctrine\DBAL\Connection" services to ping.
3939
connections: []
4040

4141
# The interval, in seconds, which connections are pinged.
42-
interval: 60 # Required
42+
interval: 60
4343
router:
4444

4545
# The main routing resource to import when loading the websocket server route definitions.

src/DependencyInjection/Configuration.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ private function addServerSection(ArrayNodeDefinition $rootNode): void
9797
->addDefaultsIfNotSet()
9898
->children()
9999
->integerNode('interval')
100-
->isRequired()
101100
->defaultValue(30)
102101
->min(1)
103102
->info('The interval, in seconds, which connections are pinged.')
@@ -115,7 +114,6 @@ private function addServerSection(ArrayNodeDefinition $rootNode): void
115114
->scalarPrototype()->end()
116115
->end()
117116
->integerNode('interval')
118-
->isRequired()
119117
->defaultValue(60)
120118
->min(1)
121119
->info('The interval, in seconds, which connections are pinged.')

0 commit comments

Comments
 (0)