fix classpath for Utils service in the legacy code
This commit is contained in:
parent
247aa9c6cc
commit
6c879760a7
2 changed files with 7 additions and 7 deletions
|
@ -226,8 +226,8 @@ class RCrmActions
|
|||
*/
|
||||
public static function clearArr($arr)
|
||||
{
|
||||
/** @var \Intaro\RetailCrm\Component\Utils $utils */
|
||||
$utils = \Intaro\RetailCrm\Component\ServiceLocator::get(\Intaro\RetailCrm\Component\Utils::class);
|
||||
/** @var \Intaro\RetailCrm\Service\Utils $utils */
|
||||
$utils = \Intaro\RetailCrm\Component\ServiceLocator::get(\Intaro\RetailCrm\Service\Utils::class);
|
||||
return $utils->clearArray($arr);
|
||||
}
|
||||
|
||||
|
@ -239,8 +239,8 @@ class RCrmActions
|
|||
*/
|
||||
public static function toJSON($str)
|
||||
{
|
||||
/** @var \Intaro\RetailCrm\Component\Utils $utils */
|
||||
$utils = \Intaro\RetailCrm\Component\ServiceLocator::get(\Intaro\RetailCrm\Component\Utils::class);
|
||||
/** @var \Intaro\RetailCrm\Service\Utils $utils */
|
||||
$utils = \Intaro\RetailCrm\Component\ServiceLocator::get(\Intaro\RetailCrm\Service\Utils::class);
|
||||
return $utils->toUTF8($str);
|
||||
}
|
||||
|
||||
|
@ -252,8 +252,8 @@ class RCrmActions
|
|||
*/
|
||||
public static function fromJSON($str)
|
||||
{
|
||||
/** @var \Intaro\RetailCrm\Component\Utils $utils */
|
||||
$utils = \Intaro\RetailCrm\Component\ServiceLocator::get(\Intaro\RetailCrm\Component\Utils::class);
|
||||
/** @var \Intaro\RetailCrm\Service\Utils $utils */
|
||||
$utils = \Intaro\RetailCrm\Component\ServiceLocator::get(\Intaro\RetailCrm\Service\Utils::class);
|
||||
return $utils->fromUTF8($str);
|
||||
}
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ class Utils
|
|||
* @param array $arr
|
||||
* @return array
|
||||
*/
|
||||
public function clearArray($arr): array
|
||||
public function clearArray($arr)
|
||||
{
|
||||
if (is_array($arr) === false) {
|
||||
return $arr;
|
||||
|
|
Loading…
Add table
Reference in a new issue