From a841713f3543ff3ae055c3f5dfcb4f87b2914071 Mon Sep 17 00:00:00 2001 From: TChin Date: Wed, 25 Aug 2021 13:58:18 -0400 Subject: [PATCH] Replace deprecated CentralIdLookup::factory Bug: T289713 Change-Id: Icba4d81d66a40012658172929ed4e015c074b903 --- includes/ServiceWiring.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/ServiceWiring.php b/includes/ServiceWiring.php index aa8212a..13983ed 100644 --- a/includes/ServiceWiring.php +++ b/includes/ServiceWiring.php @@ -75,7 +75,7 @@ return [ $services->getMainConfig(), $context->getUser(), $context->getRequest(), - CentralIdLookup::factoryNonLocal(), + $services->getCentralIdLookupFactory()->getNonLocalLookup(), Constants::CONFIG_KEY_LANGUAGE_IN_HEADER, Constants::REQUIREMENT_LANGUAGE_IN_HEADER, Constants::QUERY_PARAM_LANGUAGE_IN_HEADER, @@ -103,7 +103,7 @@ return [ $config, $context->getUser(), $context->getRequest(), - CentralIdLookup::factoryNonLocal(), + $services->getCentralIdLookupFactory()->getNonLocalLookup(), Constants::CONFIG_KEY_LANGUAGE_IN_HEADER, $requirementName, /* $overrideName = */ '',