@@ -29,8 +29,8 @@ discard block |
||
| 29 | 29 | $cache = $root->children()->arrayNode('cache'); |
| 30 | 30 | $cache->addDefaultsIfNotSet(); |
| 31 | 31 | $cache->children() |
| 32 | - ->booleanNode('enabled') |
|
| 33 | - ->defaultFalse(); |
|
| 32 | + ->booleanNode('enabled') |
|
| 33 | + ->defaultFalse(); |
|
| 34 | 34 | $cache |
| 35 | 35 | ->addDefaultsIfNotSet() |
| 36 | 36 | ->treatFalseLike(['enabled' => false]) |
@@ -47,8 +47,8 @@ discard block |
||
| 47 | 47 | $confProto = $configuration->prototype('array'); |
| 48 | 48 | $confProto->children()->scalarNode('ttl')->isRequired(); |
| 49 | 49 | $confProto->beforeNormalization() |
| 50 | - ->ifTrue(function ($v) { return is_int($v); }) |
|
| 51 | - ->then(function ($v) { return ['ttl' => $v]; }); |
|
| 50 | + ->ifTrue(function ($v) { return is_int($v); }) |
|
| 51 | + ->then(function ($v) { return ['ttl' => $v]; }); |
|
| 52 | 52 | $confProto->ignoreExtraKeys(false); |
| 53 | 53 | $confProto->canBeEnabled(); |
| 54 | 54 | |
@@ -36,14 +36,14 @@ |
||
| 36 | 36 | foreach ($clients as $id => $tags) { |
| 37 | 37 | $newId = $id . '.loggable'; |
| 38 | 38 | $container->register($newId, LoggableRpcClient::class) |
| 39 | - ->setArguments( |
|
| 40 | - [ |
|
| 41 | - new Reference($newId . '.inner'), |
|
| 42 | - new Reference($container->getParameter('bankiru_api.logger_id')), |
|
| 43 | - ] |
|
| 44 | - ) |
|
| 45 | - ->setPublic(false) |
|
| 46 | - ->setDecoratedService($id); |
|
| 39 | + ->setArguments( |
|
| 40 | + [ |
|
| 41 | + new Reference($newId . '.inner'), |
|
| 42 | + new Reference($container->getParameter('bankiru_api.logger_id')), |
|
| 43 | + ] |
|
| 44 | + ) |
|
| 45 | + ->setPublic(false) |
|
| 46 | + ->setDecoratedService($id); |
|
| 47 | 47 | } |
| 48 | 48 | } |
| 49 | 49 | } |
@@ -46,27 +46,27 @@ |
||
| 46 | 46 | |
| 47 | 47 | $profiledId = $id . '.profiled'; |
| 48 | 48 | $container->register($profiledId, ProfiledClient::class) |
| 49 | - ->setArguments( |
|
| 50 | - [ |
|
| 51 | - new Reference($profiledId . '.inner'), |
|
| 52 | - new Reference($profilerId), |
|
| 53 | - ] |
|
| 54 | - ) |
|
| 55 | - ->setPublic(false) |
|
| 56 | - ->setDecoratedService($id, null, 255); |
|
| 49 | + ->setArguments( |
|
| 50 | + [ |
|
| 51 | + new Reference($profiledId . '.inner'), |
|
| 52 | + new Reference($profilerId), |
|
| 53 | + ] |
|
| 54 | + ) |
|
| 55 | + ->setPublic(false) |
|
| 56 | + ->setDecoratedService($id, null, 255); |
|
| 57 | 57 | |
| 58 | 58 | if ($container->has('debug.stopwatch')) { |
| 59 | 59 | $tracedId = $id . '.traced'; |
| 60 | 60 | $container->register($tracedId, TraceableClient::class) |
| 61 | - ->setArguments( |
|
| 62 | - [ |
|
| 63 | - new Reference($tracedId . '.inner'), |
|
| 64 | - new Reference('debug.stopwatch'), |
|
| 65 | - 'rpc_client.' . $clientName, |
|
| 66 | - ] |
|
| 67 | - ) |
|
| 68 | - ->setPublic(false) |
|
| 69 | - ->setDecoratedService($id, null, -255); |
|
| 61 | + ->setArguments( |
|
| 62 | + [ |
|
| 63 | + new Reference($tracedId . '.inner'), |
|
| 64 | + new Reference('debug.stopwatch'), |
|
| 65 | + 'rpc_client.' . $clientName, |
|
| 66 | + ] |
|
| 67 | + ) |
|
| 68 | + ->setPublic(false) |
|
| 69 | + ->setDecoratedService($id, null, -255); |
|
| 70 | 70 | |
| 71 | 71 | } |
| 72 | 72 | |