From f26a91e314c7db8e42f791d571cccb486141626f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Frank=20J=2E=20G=C3=B3mez?= Date: Fri, 2 Feb 2018 08:42:24 -0500 Subject: [PATCH] CRM-19784: Deprecated CRM_Utils_Geocode::getProviderClass(). --- CRM/Utils/Geocode.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CRM/Utils/Geocode.php b/CRM/Utils/Geocode.php index 76cd832951..2badc24ccd 100644 --- a/CRM/Utils/Geocode.php +++ b/CRM/Utils/Geocode.php @@ -37,10 +37,21 @@ class CRM_Utils_Geocode { /** + * @deprecated + * + * @todo Remove this method. In case people are calling this downstream (which + * is unsupported usage), we'll deprecate it for a few releases before + * removing it altogether. + * * @return string|'' * Class name, or empty. */ public static function getProviderClass() { + Civi::log()->warning( + 'CRM_Utils_Geocode is deprecated and will be removed from core soon, use CRM_Utils_GeocodeProvider::getUsableClassName()', + ['civi.tag' => 'deprecated'] + ); + $settings = Civi::settings(); if ($settings->get('geoProvider')) { return 'CRM_Utils_Geocode_' . $settings->get('geoProvider'); -- 2.25.1