mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Use FQCN as service name for Predis client
This commit is contained in:
parent
60777e0573
commit
a5f22ff835
14 changed files with 34 additions and 23 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace Wallabag\ImportBundle\Controller;
|
||||
|
||||
use Predis\Client;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
use Wallabag\ImportBundle\Import\ImportChain;
|
||||
|
@ -51,7 +52,7 @@ class ImportController extends Controller
|
|||
$rabbitNotInstalled = true;
|
||||
}
|
||||
} elseif ($this->get('craue_config')->get('import_with_redis')) {
|
||||
$redis = $this->get('wallabag_core.redis.client');
|
||||
$redis = $this->get(Client::class);
|
||||
|
||||
try {
|
||||
$nbRedisMessages = $redis->llen('wallabag.import.pocket')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue