Redis service
This commit is contained in:
@ -19,4 +19,11 @@ return [
|
||||
return (new Incoviba\Service\Money())->register('uf', $mindicador)
|
||||
->register('ipc', $mindicador);
|
||||
},
|
||||
Predis\Client::class => function(ContainerInterface $container) {
|
||||
return new Predis\Client([
|
||||
'scheme' => 'tcp',
|
||||
'host' => $container->get('REDIS_HOST'),
|
||||
'port' => $container->get('REDIS_PORT')
|
||||
]);
|
||||
}
|
||||
];
|
||||
|
Reference in New Issue
Block a user