You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
->scalarNode('algorithm')->info('The algorithm to use to sign the JWT')->defaultValue('hmac.sha256')->end()
67
-
->end()
68
-
->end()
69
-
->scalarNode('jwt_provider')
70
-
->info('The ID of a service to call to generate the JSON Web Token.')
71
-
->setDeprecated('symfony/mercure-bundle', '0.3', 'The child node "%node%" at path "%path%" is deprecated, use "jwt.provider" instead.')
72
-
->end()
73
-
->scalarNode('bus')->info('Name of the Messenger bus where the handler for this hub must be registered. Default to the default bus if Messenger is enabled.')->end()
42
+
->scalarNode('url')->info('URL of the hub\'s publish endpoint')->example('https://demo.mercure.rocks/.well-known/mercure');
43
+
44
+
if ($builtinPublish) {
45
+
$urlNode->defaultNull();
46
+
}
47
+
48
+
$publicUrlNode = $urlNode->end()
49
+
->scalarNode('public_url')->info('URL of the hub\'s public endpoint')->example('https://demo.mercure.rocks/.well-known/mercure');
50
+
51
+
if (!$builtinPublish) {
52
+
$publicUrlNode->defaultNull();
53
+
}
54
+
55
+
$publicUrlNode->end()
56
+
->arrayNode('jwt')
57
+
->beforeNormalization()
58
+
->ifString()
59
+
->then(staticfunction (string$token): array {
60
+
return [
61
+
'value' => $token,
62
+
];
63
+
})
64
+
->end()
65
+
->info('JSON Web Token configuration.')
66
+
->children()
67
+
->scalarNode('value')->info('JSON Web Token to use to publish to this hub.')->end()
68
+
->scalarNode('provider')->info('The ID of a service to call to provide the JSON Web Token.')->end()
69
+
->scalarNode('factory')->info('The ID of a service to call to create the JSON Web Token.')->end()
70
+
->arrayNode('publish')
71
+
->beforeNormalization()->castToArray()->end()
72
+
->scalarPrototype()->end()
73
+
->info('A list of topics to allow publishing to when using the given factory to generate the JWT.')
74
+
->end()
75
+
->arrayNode('subscribe')
76
+
->beforeNormalization()->castToArray()->end()
77
+
->scalarPrototype()->end()
78
+
->info('A list of topics to allow subscribing to when using the given factory to generate the JWT.')
79
+
->end()
80
+
->scalarNode('secret')->info('The JWT Secret to use.')->example('!ChangeMe!')->end()
->scalarNode('algorithm')->info('The algorithm to use to sign the JWT')->defaultValue('hmac.sha256')->end()
83
+
->end()
84
+
->end()
85
+
->scalarNode('jwt_provider')
86
+
->info('The ID of a service to call to generate the JSON Web Token.')
87
+
->setDeprecated('symfony/mercure-bundle', '0.3', 'The child node "%node%" at path "%path%" is deprecated, use "jwt.provider" instead.')
88
+
->end()
89
+
->scalarNode('bus')->info('Name of the Messenger bus where the handler for this hub must be registered. Default to the default bus if Messenger is enabled.')->end()
0 commit comments