Rename the json cache service. #689
This commit is contained in:
parent
ad99565d45
commit
bc0ed9ea30
3 changed files with 4 additions and 4 deletions
|
|
@ -233,7 +233,7 @@ services:
|
||||||
$loc_key: "%env(LOCATION_RIDER_ACTIVE_KEY)%"
|
$loc_key: "%env(LOCATION_RIDER_ACTIVE_KEY)%"
|
||||||
$status_key: "%env(STATUS_RIDER_KEY)%"
|
$status_key: "%env(STATUS_RIDER_KEY)%"
|
||||||
|
|
||||||
App\Service\JsonCache:
|
App\Service\JobOrderJsonCache:
|
||||||
arguments:
|
arguments:
|
||||||
$redis_prov: "@App\\Service\\RedisClientProvider"
|
$redis_prov: "@App\\Service\\RedisClientProvider"
|
||||||
$jo_json_info_key: "%env(JO_JSON_INFO_KEY)%"
|
$jo_json_info_key: "%env(JO_JSON_INFO_KEY)%"
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ use App\Service\HubDistributor;
|
||||||
use App\Service\HubFilterLogger;
|
use App\Service\HubFilterLogger;
|
||||||
use App\Service\HubFilteringGeoChecker;
|
use App\Service\HubFilteringGeoChecker;
|
||||||
use App\Service\HashGenerator;
|
use App\Service\HashGenerator;
|
||||||
use App\Service\JsonCache;
|
use App\Service\JobOrderJsonCache;
|
||||||
|
|
||||||
use App\Entity\MobileSession;
|
use App\Entity\MobileSession;
|
||||||
use App\Entity\Customer;
|
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
|
// 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
|
// check required parameters and api key
|
||||||
$res = $this->checkParamsAndKey($req, $em, []);
|
$res = $this->checkParamsAndKey($req, $em, []);
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ namespace App\Service;
|
||||||
|
|
||||||
use App\Service\RedisClientProvider;
|
use App\Service\RedisClientProvider;
|
||||||
|
|
||||||
class JsonCache
|
class JobOrderJsonCache
|
||||||
{
|
{
|
||||||
protected $redis;
|
protected $redis;
|
||||||
protected $jo_json_info_key;
|
protected $jo_json_info_key;
|
||||||
Loading…
Reference in a new issue