@@ -60,7 +60,7 @@ |
||
| 60 | 60 | ], |
| 61 | 61 | ], |
| 62 | 62 | ]; |
| 63 | - $configs = $processor->processConfiguration( |
|
| 63 | + $configs = $processor->processConfiguration( |
|
| 64 | 64 | $configuration, |
| 65 | 65 | $rawConfigs |
| 66 | 66 | ); |
@@ -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 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | ->treatNullLike(['enabled' => true]); |
| 39 | 39 | $cache->children()->scalarNode('service')->defaultNull()->info('PSR-6 Cache service. Required if enabled'); |
| 40 | 40 | $cache->children()->scalarNode('logger')->defaultNull()->info('PSR-3 Log service for cache'); |
| 41 | - $cache->beforeNormalization()->ifString()->then(function ($v) { |
|
| 41 | + $cache->beforeNormalization()->ifString()->then(function($v) { |
|
| 42 | 42 | return ['service' => $v, 'enabled' => true]; |
| 43 | 43 | }); |
| 44 | 44 | $configuration = $cache->children()->arrayNode('configuration'); |
@@ -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 | |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | DIRECTORY_SEPARATOR |
| 48 | 48 | ] |
| 49 | 49 | ); |
| 50 | - $driverDef = new Definition(YmlMetadataDriver::class,[$locatorDef]); |
|
| 50 | + $driverDef = new Definition(YmlMetadataDriver::class, [$locatorDef]); |
|
| 51 | 51 | |
| 52 | 52 | $driver->addMethodCall('addDriver', [$driverDef, $namespace]); |
| 53 | 53 | } |
@@ -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 | |