@@ -52,7 +52,7 @@ |
||
| 52 | 52 | 'sub-payload' => 'sub-payload', |
| 53 | 53 | ] |
| 54 | 54 | ), |
| 55 | - function () { |
|
| 55 | + function() { |
|
| 56 | 56 | usleep(1000); |
| 57 | 57 | |
| 58 | 58 | return true; |
@@ -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 | ); |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | DIRECTORY_SEPARATOR, |
| 46 | 46 | ] |
| 47 | 47 | ); |
| 48 | - $driverDef = new Definition(YmlMetadataDriver::class, [$locatorDef]); |
|
| 48 | + $driverDef = new Definition(YmlMetadataDriver::class, [$locatorDef]); |
|
| 49 | 49 | |
| 50 | 50 | $driver->addMethodCall('addDriver', [$driverDef, $namespace]); |
| 51 | 51 | } |
@@ -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 | |
@@ -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 | } |
@@ -47,19 +47,19 @@ |
||
| 47 | 47 | $confProto = $configuration->prototype('array'); |
| 48 | 48 | $confProto->children()->scalarNode('ttl')->isRequired(); |
| 49 | 49 | $confProto->beforeNormalization() |
| 50 | - ->ifTrue( |
|
| 51 | - function ($v) { |
|
| 52 | - return is_int($v); |
|
| 53 | - } |
|
| 54 | - ) |
|
| 55 | - ->then( |
|
| 56 | - function ($v) { |
|
| 57 | - return ['ttl' => $v]; |
|
| 58 | - } |
|
| 59 | - ); |
|
| 50 | + ->ifTrue( |
|
| 51 | + function ($v) { |
|
| 52 | + return is_int($v); |
|
| 53 | + } |
|
| 54 | + ) |
|
| 55 | + ->then( |
|
| 56 | + function ($v) { |
|
| 57 | + return ['ttl' => $v]; |
|
| 58 | + } |
|
| 59 | + ); |
|
| 60 | 60 | $confProto->children()->variableNode('extra') |
| 61 | - ->info('Extra data for entity cache configuration') |
|
| 62 | - ->defaultValue([]); |
|
| 61 | + ->info('Extra data for entity cache configuration') |
|
| 62 | + ->defaultValue([]); |
|
| 63 | 63 | $confProto->ignoreExtraKeys(false); |
| 64 | 64 | $confProto->canBeEnabled(); |
| 65 | 65 | |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | Cache::class . ' Implementation service id. Required if enabled' |
| 28 | 28 | )->defaultNull(); |
| 29 | 29 | $metadataCache->beforeNormalization()->ifString()->then( |
| 30 | - function ($v) { |
|
| 30 | + function($v) { |
|
| 31 | 31 | return ['service' => $v, 'enabled' => true]; |
| 32 | 32 | } |
| 33 | 33 | ); |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | $cache->children()->scalarNode('service')->info('PSR-6 Cache service. Required if enabled'); |
| 38 | 38 | $cache->children()->scalarNode('logger')->defaultNull()->info('PSR-3 Log service for cache'); |
| 39 | 39 | $cache->beforeNormalization()->ifString()->then( |
| 40 | - function ($v) { |
|
| 40 | + function($v) { |
|
| 41 | 41 | return ['service' => $v, 'enabled' => true]; |
| 42 | 42 | } |
| 43 | 43 | ); |
@@ -48,12 +48,12 @@ discard block |
||
| 48 | 48 | $confProto->children()->scalarNode('ttl')->isRequired(); |
| 49 | 49 | $confProto->beforeNormalization() |
| 50 | 50 | ->ifTrue( |
| 51 | - function ($v) { |
|
| 51 | + function($v) { |
|
| 52 | 52 | return is_int($v); |
| 53 | 53 | } |
| 54 | 54 | ) |
| 55 | 55 | ->then( |
| 56 | - function ($v) { |
|
| 56 | + function($v) { |
|
| 57 | 57 | return ['ttl' => $v]; |
| 58 | 58 | } |
| 59 | 59 | ); |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | |
| 43 | 43 | if ($this->isConfigEnabled($container, $config['metadata_cache'])) { |
| 44 | 44 | $container->getDefinition('bankiru_api.metadata_factory') |
| 45 | - ->addMethodCall('setCacheDriver', [new Reference($config['metadata_cache']['service'])]); |
|
| 45 | + ->addMethodCall('setCacheDriver', [new Reference($config['metadata_cache']['service'])]); |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | $this->processSensioExtraConfig($container, $loader); |