Fix BAO class namespace issues

This commit is contained in:
Jens Schuppe 2024-10-09 12:39:57 +02:00
parent 82952a0162
commit c7c766d926
10 changed files with 16 additions and 22 deletions

View file

@ -1,6 +1,6 @@
<?php
use CRM_Twingle_ExtensionUtil as E;
use Civi\Twingle\Shop\BAO\TwingleShop;
/**
* TwingleShop.Get API specification (optional)
@ -92,7 +92,7 @@ function civicrm_api3_twingle_shop_Get($params) {
// Execute query
try {
$dao = TwingleShop::executeQuery($query, $query_params);
$dao = CRM_Twingle_BAO_TwingleShop::executeQuery($query, $query_params);
}
catch (\Exception $e) {
return civicrm_api3_create_error($e->getMessage(), [