This commit is contained in:
Juan Pablo Vial
2024-04-02 13:50:08 -03:00
parent bc9c71870c
commit 84a2fbd119
6 changed files with 105 additions and 27 deletions

View File

@ -18,7 +18,7 @@ class Errors
try {
return $handler->handle($request);
} catch (Exception $exception) {
$this->logger->notice($exception);
$this->logger->warning($exception);
} catch (Error $error) {
$this->logger->error($error);
}

View File

@ -1,12 +1,12 @@
<?php
namespace Incoviba\Service;
use Predis\Client;
use Predis\ClientInterface;
use Incoviba\Common\Implement\Exception\EmptyRedis;
class Redis
{
public function __construct(protected Client $client) {}
public function __construct(protected ClientInterface $client) {}
public function get(string $name): mixed
{