@@ -165,6 +165,9 @@ |
||
| 165 | 165 | ); |
| 166 | 166 | } |
| 167 | 167 | |
| 168 | + /** |
|
| 169 | + * @param string $uri |
|
| 170 | + */ |
|
| 168 | 171 | private function createJsonRequest($uri, $content) |
| 169 | 172 | { |
| 170 | 173 | return Request::create($uri, 'POST', [], [], [], [], json_encode($content)); |
@@ -15,9 +15,9 @@ |
||
| 15 | 15 | $root = $builder->root('jsonrpc_server'); |
| 16 | 16 | |
| 17 | 17 | $root->children() |
| 18 | - ->scalarNode('view_listener') |
|
| 19 | - ->info('View listener service ID') |
|
| 20 | - ->defaultValue('jsonrpc_server.builtin_adapter.view_listener'); |
|
| 18 | + ->scalarNode('view_listener') |
|
| 19 | + ->info('View listener service ID') |
|
| 20 | + ->defaultValue('jsonrpc_server.builtin_adapter.view_listener'); |
|
| 21 | 21 | |
| 22 | 22 | $adapters = $root->children()->arrayNode('adapters'); |
| 23 | 23 | $this->configureJms($adapters); |
@@ -28,15 +28,15 @@ |
||
| 28 | 28 | |
| 29 | 29 | if (!empty($config['view_listener'])) { |
| 30 | 30 | $container->getDefinition($config['view_listener']) |
| 31 | - ->setPublic(true) |
|
| 32 | - ->addTag( |
|
| 33 | - 'kernel.event_listener', |
|
| 34 | - [ |
|
| 35 | - 'event' => RpcEvents::VIEW, |
|
| 36 | - 'method' => 'onPlainResponse', |
|
| 37 | - 'priority' => -254, |
|
| 38 | - ] |
|
| 39 | - ); |
|
| 31 | + ->setPublic(true) |
|
| 32 | + ->addTag( |
|
| 33 | + 'kernel.event_listener', |
|
| 34 | + [ |
|
| 35 | + 'event' => RpcEvents::VIEW, |
|
| 36 | + 'method' => 'onPlainResponse', |
|
| 37 | + 'priority' => -254, |
|
| 38 | + ] |
|
| 39 | + ); |
|
| 40 | 40 | } |
| 41 | 41 | } |
| 42 | 42 | |