@@ -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 | |
@@ -23,9 +23,11 @@ |
||
| 23 | 23 | { |
| 24 | 24 | $client = self::createClient(); |
| 25 | 25 | |
| 26 | - foreach (['test', 'test_private'] as $endpoint) /** @var MethodCollection $collection */ { |
|
| 26 | + foreach (['test', 'test_private'] as $endpoint) { |
|
| 27 | + /** @var MethodCollection $collection */ { |
|
| 27 | 28 | /** @var Router $router */ |
| 28 | 29 | $router = $client->getContainer()->get('rpc_server.endpoint_router.' . $endpoint); |
| 30 | + } |
|
| 29 | 31 | self::assertNotNull($router); |
| 30 | 32 | $collection = $router->getMethodCollection(); |
| 31 | 33 | self::assertNotNull($router); |