Skip to content

Commit 14c90b8

Browse files
authored
Improve (#31)
1 parent f91f146 commit 14c90b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/DependencyInjection/JsonRpcHttpServerExtension.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ class JsonRpcHttpServerExtension implements ExtensionInterface, CompilerPassInte
2121
// Extension identifier (used in configuration for instance)
2222
public const EXTENSION_IDENTIFIER = 'json_rpc_http_server';
2323

24+
public const ENDPOINT_PATH_CONTAINER_PARAM_ID = self::EXTENSION_IDENTIFIER.'.http_endpoint_path';
25+
2426
/** Tags */
2527
/**** Methods tags **/
2628
// Use this tag to inject your JSON-RPC methods into the default method resolver
@@ -101,7 +103,7 @@ private function compileAndProcessConfigurations(array $configs, ContainerBuilde
101103

102104
$httpEndpointPath = $config['endpoint'];
103105

104-
$container->setParameter(self::EXTENSION_IDENTIFIER.'.http_endpoint_path', $httpEndpointPath);
106+
$container->setParameter(self::ENDPOINT_PATH_CONTAINER_PARAM_ID, $httpEndpointPath);
105107
}
106108

107109
/**

0 commit comments

Comments
 (0)