rename field utils to fields
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
|
||||
namespace Espo\Classes\AddressFormatters;
|
||||
|
||||
use Espo\Core\FieldUtils\Address\{
|
||||
use Espo\Core\Fields\Address\{
|
||||
AddressFormatter,
|
||||
Address,
|
||||
};
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
namespace Espo\Classes\AddressFormatters;
|
||||
|
||||
use Espo\Core\FieldUtils\Address\{
|
||||
use Espo\Core\Fields\Address\{
|
||||
AddressFormatter,
|
||||
Address,
|
||||
};
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
namespace Espo\Classes\AddressFormatters;
|
||||
|
||||
use Espo\Core\FieldUtils\Address\{
|
||||
use Espo\Core\Fields\Address\{
|
||||
AddressFormatter,
|
||||
Address,
|
||||
};
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
namespace Espo\Classes\AddressFormatters;
|
||||
|
||||
use Espo\Core\FieldUtils\Address\{
|
||||
use Espo\Core\Fields\Address\{
|
||||
AddressFormatter,
|
||||
Address,
|
||||
};
|
||||
|
||||
@@ -40,10 +40,10 @@ use Espo\Core\{
|
||||
ORM\EntityManager,
|
||||
Utils\FieldUtil,
|
||||
Utils\Metadata,
|
||||
FieldUtils\Currency\CurrencyConfigDataProvider,
|
||||
FieldUtils\Currency\CurrencyConverter,
|
||||
FieldUtils\Currency\Currency,
|
||||
FieldUtils\Currency\CurrencyRates,
|
||||
Fields\Currency\CurrencyConfigDataProvider,
|
||||
Fields\Currency\CurrencyConverter,
|
||||
Fields\Currency\Currency,
|
||||
Fields\Currency\CurrencyRates,
|
||||
};
|
||||
|
||||
use Espo\{
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
namespace Espo\Core\FieldUtils\Address;
|
||||
namespace Espo\Core\Fields\Address;
|
||||
|
||||
/**
|
||||
* An address value.
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
namespace Espo\Core\FieldUtils\Address;
|
||||
namespace Espo\Core\Fields\Address;
|
||||
|
||||
use StdClass;
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
namespace Espo\Core\FieldUtils\Address;
|
||||
namespace Espo\Core\Fields\Address;
|
||||
|
||||
/**
|
||||
* An address value builder.
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
namespace Espo\Core\FieldUtils\Address;
|
||||
namespace Espo\Core\Fields\Address;
|
||||
|
||||
use Espo\{
|
||||
ORM\Entity,
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
namespace Espo\Core\FieldUtils\Address;
|
||||
namespace Espo\Core\Fields\Address;
|
||||
|
||||
/**
|
||||
* An address formatter.
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
namespace Espo\Core\FieldUtils\Address;
|
||||
namespace Espo\Core\Fields\Address;
|
||||
|
||||
use RuntimeException;
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
namespace Espo\Core\FieldUtils\Address;
|
||||
namespace Espo\Core\Fields\Address;
|
||||
|
||||
use Espo\Core\Utils\Metadata;
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
namespace Espo\Core\FieldUtils\Currency;
|
||||
namespace Espo\Core\Fields\Currency;
|
||||
|
||||
use RuntimeException;
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
namespace Espo\Core\FieldUtils\Currency;
|
||||
namespace Espo\Core\Fields\Currency;
|
||||
|
||||
use StdClass;
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
namespace Espo\Core\FieldUtils\Currency;
|
||||
namespace Espo\Core\Fields\Currency;
|
||||
|
||||
use Espo\Core\Utils\Config;
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
namespace Espo\Core\FieldUtils\Currency;
|
||||
namespace Espo\Core\Fields\Currency;
|
||||
|
||||
use RuntimeException;
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
namespace Espo\Core\FieldUtils\Currency;
|
||||
namespace Espo\Core\Fields\Currency;
|
||||
|
||||
use Espo\{
|
||||
ORM\Entity,
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
namespace Espo\Core\FieldUtils\Currency;
|
||||
namespace Espo\Core\Fields\Currency;
|
||||
|
||||
use RuntimeException;
|
||||
|
||||
@@ -41,10 +41,10 @@ use Espo\Core\{
|
||||
ORM\EntityManager,
|
||||
Utils\FieldUtil,
|
||||
Utils\Metadata,
|
||||
FieldUtils\Currency\CurrencyConfigDataProvider,
|
||||
FieldUtils\Currency\CurrencyConverter,
|
||||
FieldUtils\Currency\Currency,
|
||||
FieldUtils\Currency\CurrencyRates,
|
||||
Fields\Currency\CurrencyConfigDataProvider,
|
||||
Fields\Currency\CurrencyConverter,
|
||||
Fields\Currency\Currency,
|
||||
Fields\Currency\CurrencyRates,
|
||||
};
|
||||
|
||||
use Espo\{
|
||||
|
||||
@@ -2643,7 +2643,7 @@ class Record implements Crud,
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use `Espo\Core\FieldUtils\Currency\CurrencyConverter`.
|
||||
* @deprecated Use `Espo\Core\Fields\Currency\CurrencyConverter`.
|
||||
*/
|
||||
public function getConvertCurrencyValues(
|
||||
Entity $entity, string $targetCurrency, string $baseCurrency,
|
||||
|
||||
@@ -40,8 +40,8 @@ use Espo\Core\{
|
||||
FileStorage\Manager as FileStorageManager,
|
||||
Utils\File\Manager as FileManager,
|
||||
ORM\EntityManager,
|
||||
FieldUtils\Address\Address,
|
||||
FieldUtils\Address\AddressFormatterFactory,
|
||||
Fields\Address\Address,
|
||||
Fields\Address\AddressFormatterFactory,
|
||||
};
|
||||
|
||||
use PhpOffice\PhpSpreadsheet\Cell\DataType;
|
||||
|
||||
+2
-2
@@ -27,9 +27,9 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
namespace tests\integration\Espo\Core\FieldUtils\Address;
|
||||
namespace tests\integration\Espo\Core\Fields\Address;
|
||||
|
||||
use Espo\Core\FieldUtils\Address\{
|
||||
use Espo\Core\Fields\Address\{
|
||||
AddressFormatterFactory,
|
||||
AddressValue,
|
||||
};
|
||||
+2
-2
@@ -27,10 +27,10 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
namespace tests\unit\Espo\Core\FieldUtils\Address;
|
||||
namespace tests\unit\Espo\Core\Fields\Address;
|
||||
|
||||
use Espo\Core\{
|
||||
FieldUtils\Address\Address,
|
||||
Fields\Address\Address,
|
||||
};
|
||||
|
||||
use Espo\Classes\{
|
||||
+3
-3
@@ -27,11 +27,11 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
namespace tests\unit\Espo\Core\FieldUtils\Address;
|
||||
namespace tests\unit\Espo\Core\Fields\Address;
|
||||
|
||||
use Espo\Core\{
|
||||
FieldUtils\Address\Address,
|
||||
FieldUtils\Address\AddressFactory,
|
||||
Fields\Address\Address,
|
||||
Fields\Address\AddressFactory,
|
||||
};
|
||||
|
||||
use Espo\ORM\Entity;
|
||||
+2
-2
@@ -27,10 +27,10 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
namespace tests\unit\Espo\Core\FieldUtils\Currency;
|
||||
namespace tests\unit\Espo\Core\Fields\Currency;
|
||||
|
||||
use Espo\Core\{
|
||||
FieldUtils\Currency\CurrencyConfigDataProvider,
|
||||
Fields\Currency\CurrencyConfigDataProvider,
|
||||
Utils\Config,
|
||||
};
|
||||
|
||||
+5
-5
@@ -27,13 +27,13 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
namespace tests\unit\Espo\Core\FieldUtils\Currency;
|
||||
namespace tests\unit\Espo\Core\Fields\Currency;
|
||||
|
||||
use Espo\Core\{
|
||||
FieldUtils\Currency\Currency,
|
||||
FieldUtils\Currency\CurrencyConverter,
|
||||
FieldUtils\Currency\CurrencyConfigDataProvider,
|
||||
FieldUtils\Currency\CurrencyRates,
|
||||
Fields\Currency\Currency,
|
||||
Fields\Currency\CurrencyConverter,
|
||||
Fields\Currency\CurrencyConfigDataProvider,
|
||||
Fields\Currency\CurrencyRates,
|
||||
};
|
||||
|
||||
class CurrencyConverterTest extends \PHPUnit\Framework\TestCase
|
||||
+3
-3
@@ -27,11 +27,11 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
namespace tests\unit\Espo\Core\FieldUtils\Currency;
|
||||
namespace tests\unit\Espo\Core\Fields\Currency;
|
||||
|
||||
use Espo\Core\{
|
||||
FieldUtils\Currency\Currency,
|
||||
FieldUtils\Currency\CurrencyFactory,
|
||||
Fields\Currency\Currency,
|
||||
Fields\Currency\CurrencyFactory,
|
||||
};
|
||||
|
||||
use Espo\{
|
||||
Reference in New Issue
Block a user