From bc0ed9ea307e6f547593ac551a3c124217bf2e9b Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Wed, 29 Jun 2022 08:01:57 +0000 Subject: [PATCH] Rename the json cache service. #689 --- config/services.yaml | 2 +- src/Controller/APIController.php | 4 ++-- src/Service/{JsonCache.php => JobOrderJsonCache.php} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename src/Service/{JsonCache.php => JobOrderJsonCache.php} (97%) diff --git a/config/services.yaml b/config/services.yaml index 87442910..50791ba1 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -233,7 +233,7 @@ services: $loc_key: "%env(LOCATION_RIDER_ACTIVE_KEY)%" $status_key: "%env(STATUS_RIDER_KEY)%" - App\Service\JsonCache: + App\Service\JobOrderJsonCache: arguments: $redis_prov: "@App\\Service\\RedisClientProvider" $jo_json_info_key: "%env(JO_JSON_INFO_KEY)%" diff --git a/src/Controller/APIController.php b/src/Controller/APIController.php index e3d81204..7267ccf9 100644 --- a/src/Controller/APIController.php +++ b/src/Controller/APIController.php @@ -48,7 +48,7 @@ use App\Service\HubDistributor; use App\Service\HubFilterLogger; use App\Service\HubFilteringGeoChecker; use App\Service\HashGenerator; -use App\Service\JsonCache; +use App\Service\JobOrderJsonCache; use App\Entity\MobileSession; use App\Entity\Customer; @@ -1868,7 +1868,7 @@ class APIController extends Controller implements LoggedController } // we can't use param converter for now because we want to output the proper 404 - public function getJobOrderInfo($id, Request $req, EntityManagerInterface $em, RiderTracker $rt, JsonCache $json_cache) + public function getJobOrderInfo($id, Request $req, EntityManagerInterface $em, RiderTracker $rt, JobOrderJsonCache $json_cache) { // check required parameters and api key $res = $this->checkParamsAndKey($req, $em, []); diff --git a/src/Service/JsonCache.php b/src/Service/JobOrderJsonCache.php similarity index 97% rename from src/Service/JsonCache.php rename to src/Service/JobOrderJsonCache.php index 1d8b3bcf..414bdb52 100644 --- a/src/Service/JsonCache.php +++ b/src/Service/JobOrderJsonCache.php @@ -4,7 +4,7 @@ namespace App\Service; use App\Service\RedisClientProvider; -class JsonCache +class JobOrderJsonCache { protected $redis; protected $jo_json_info_key;