From ea875889a6812d066731c44fc5f1765d67080a27 Mon Sep 17 00:00:00 2001 From: Dominik Skerhak Date: Fri, 19 Jan 2024 11:06:36 +0100 Subject: [PATCH] [PSR4] ApplicationModule - (Rector) Fix uses of changed classes remp/crm#2228 --- .../DownloadReceiptButton.php | 2 +- .../DownloadReceiptButtonFactory.php | 6 +++--- .../ReceiptAdminButtonFactory.php | 6 +++--- .../InvoiceAdminButtonFactory.php | 6 +++--- .../InvoiceButton/InvoiceButton.php | 4 ++-- .../InvoiceFrontendButtonFactory.php | 6 +++--- .../InvoiceDetailsWidget.php | 4 ++-- src/Components/InvoiceLabel/InvoiceLabel.php | 2 +- .../PaymentSuccessInvoiceWidget.php | 4 ++-- src/DataProviders/ConfigFormDataProvider.php | 2 +- .../InvoicesUserDataProvider.php | 2 +- src/DataProviders/UserFormDataProvider.php | 2 +- src/Events/PaymentStatusChangeHandler.php | 2 +- src/Events/PreNotificationEventHandler.php | 2 +- src/Forms/ChangeInvoiceDetailsFormFactory.php | 4 ++-- src/Forms/ChangeInvoiceFormFactory.php | 2 +- src/Forms/UserInvoiceFormFactory.php | 4 ++-- src/InvoicesModule.php | 20 +++++++++---------- src/Models/Generator/InvoiceGenerator.php | 8 ++++---- src/Models/Generator/ReceiptGenerator.php | 2 +- src/Repositories/InvoiceItemsRepository.php | 2 +- src/Repositories/InvoiceNumbersRepository.php | 4 ++-- src/Repositories/InvoicesRepository.php | 6 +++--- src/Scenarios/HasInvoiceCriteria.php | 4 ++-- src/Seeders/ConfigsSeeder.php | 6 +++--- src/Tests/BaseTestCase.php | 2 +- .../Events/PaymentStatusChangeHandlerTest.php | 6 +++--- .../InvoicesGeneratorGenerateTest.php | 2 +- .../Hermes/GenerateInvoiceHandlerTest.php | 4 ++-- src/Tests/PreNotificationHandlerTest.php | 4 ++-- .../Repository/InvoicesRepositoryTest.php | 6 +++--- ...222072811_invoices_country_id_nullable.php | 2 +- 32 files changed, 69 insertions(+), 69 deletions(-) diff --git a/src/Components/DownloadReceiptButton/DownloadReceiptButton.php b/src/Components/DownloadReceiptButton/DownloadReceiptButton.php index 7498be4..f3db3ab 100644 --- a/src/Components/DownloadReceiptButton/DownloadReceiptButton.php +++ b/src/Components/DownloadReceiptButton/DownloadReceiptButton.php @@ -2,7 +2,7 @@ namespace Crm\InvoicesModule\Components\DownloadReceiptButton; -use Crm\ApplicationModule\Widget\BaseLazyWidget; +use Crm\ApplicationModule\Models\Widget\BaseLazyWidget; /** * Download receipt button widget. diff --git a/src/Components/DownloadReceiptButton/DownloadReceiptButtonFactory.php b/src/Components/DownloadReceiptButton/DownloadReceiptButtonFactory.php index 9473ead..c7733a4 100644 --- a/src/Components/DownloadReceiptButton/DownloadReceiptButtonFactory.php +++ b/src/Components/DownloadReceiptButton/DownloadReceiptButtonFactory.php @@ -2,9 +2,9 @@ namespace Crm\InvoicesModule\Components\DownloadReceiptButton; -use Crm\ApplicationModule\Widget\LazyWidgetManager; -use Crm\ApplicationModule\Widget\WidgetFactoryInterface; -use Crm\ApplicationModule\Widget\WidgetInterface; +use Crm\ApplicationModule\Models\Widget\LazyWidgetManager; +use Crm\ApplicationModule\Models\Widget\WidgetFactoryInterface; +use Crm\ApplicationModule\Models\Widget\WidgetInterface; class DownloadReceiptButtonFactory implements WidgetFactoryInterface { diff --git a/src/Components/DownloadReceiptButton/ReceiptAdminButtonFactory.php b/src/Components/DownloadReceiptButton/ReceiptAdminButtonFactory.php index 880975d..47e8b7b 100644 --- a/src/Components/DownloadReceiptButton/ReceiptAdminButtonFactory.php +++ b/src/Components/DownloadReceiptButton/ReceiptAdminButtonFactory.php @@ -2,9 +2,9 @@ namespace Crm\InvoicesModule\Components\DownloadReceiptButton; -use Crm\ApplicationModule\Widget\LazyWidgetManager; -use Crm\ApplicationModule\Widget\WidgetFactoryInterface; -use Crm\ApplicationModule\Widget\WidgetInterface; +use Crm\ApplicationModule\Models\Widget\LazyWidgetManager; +use Crm\ApplicationModule\Models\Widget\WidgetFactoryInterface; +use Crm\ApplicationModule\Models\Widget\WidgetInterface; class ReceiptAdminButtonFactory implements WidgetFactoryInterface { diff --git a/src/Components/InvoiceButton/InvoiceAdminButtonFactory.php b/src/Components/InvoiceButton/InvoiceAdminButtonFactory.php index 213f6e0..4111eba 100644 --- a/src/Components/InvoiceButton/InvoiceAdminButtonFactory.php +++ b/src/Components/InvoiceButton/InvoiceAdminButtonFactory.php @@ -2,9 +2,9 @@ namespace Crm\InvoicesModule\Components\InvoiceButton; -use Crm\ApplicationModule\Widget\LazyWidgetManager; -use Crm\ApplicationModule\Widget\WidgetFactoryInterface; -use Crm\ApplicationModule\Widget\WidgetInterface; +use Crm\ApplicationModule\Models\Widget\LazyWidgetManager; +use Crm\ApplicationModule\Models\Widget\WidgetFactoryInterface; +use Crm\ApplicationModule\Models\Widget\WidgetInterface; use Crm\InvoicesModule\Repositories\InvoicesRepository; class InvoiceAdminButtonFactory implements WidgetFactoryInterface diff --git a/src/Components/InvoiceButton/InvoiceButton.php b/src/Components/InvoiceButton/InvoiceButton.php index 0ee45bd..33ee34a 100644 --- a/src/Components/InvoiceButton/InvoiceButton.php +++ b/src/Components/InvoiceButton/InvoiceButton.php @@ -2,8 +2,8 @@ namespace Crm\InvoicesModule\Components\InvoiceButton; -use Crm\ApplicationModule\Widget\BaseLazyWidget; -use Crm\ApplicationModule\Widget\LazyWidgetManager; +use Crm\ApplicationModule\Models\Widget\BaseLazyWidget; +use Crm\ApplicationModule\Models\Widget\LazyWidgetManager; use Crm\InvoicesModule\Repositories\InvoicesRepository; use Nette\Utils\DateTime; diff --git a/src/Components/InvoiceButton/InvoiceFrontendButtonFactory.php b/src/Components/InvoiceButton/InvoiceFrontendButtonFactory.php index 4d4a718..fa30a90 100644 --- a/src/Components/InvoiceButton/InvoiceFrontendButtonFactory.php +++ b/src/Components/InvoiceButton/InvoiceFrontendButtonFactory.php @@ -2,9 +2,9 @@ namespace Crm\InvoicesModule\Components\InvoiceButton; -use Crm\ApplicationModule\Widget\LazyWidgetManager; -use Crm\ApplicationModule\Widget\WidgetFactoryInterface; -use Crm\ApplicationModule\Widget\WidgetInterface; +use Crm\ApplicationModule\Models\Widget\LazyWidgetManager; +use Crm\ApplicationModule\Models\Widget\WidgetFactoryInterface; +use Crm\ApplicationModule\Models\Widget\WidgetInterface; use Crm\InvoicesModule\Repositories\InvoicesRepository; class InvoiceFrontendButtonFactory implements WidgetFactoryInterface diff --git a/src/Components/InvoiceDetailsWidget/InvoiceDetailsWidget.php b/src/Components/InvoiceDetailsWidget/InvoiceDetailsWidget.php index 076302d..0bd9824 100644 --- a/src/Components/InvoiceDetailsWidget/InvoiceDetailsWidget.php +++ b/src/Components/InvoiceDetailsWidget/InvoiceDetailsWidget.php @@ -2,8 +2,8 @@ namespace Crm\InvoicesModule\Components\InvoiceDetailsWidget; -use Crm\ApplicationModule\Widget\BaseLazyWidget; -use Crm\ApplicationModule\Widget\LazyWidgetManager; +use Crm\ApplicationModule\Models\Widget\BaseLazyWidget; +use Crm\ApplicationModule\Models\Widget\LazyWidgetManager; use Crm\InvoicesModule\Forms\ChangeInvoiceDetailsFormFactory; use Nette\Localization\Translator; diff --git a/src/Components/InvoiceLabel/InvoiceLabel.php b/src/Components/InvoiceLabel/InvoiceLabel.php index 9f31528..5e86c4f 100644 --- a/src/Components/InvoiceLabel/InvoiceLabel.php +++ b/src/Components/InvoiceLabel/InvoiceLabel.php @@ -2,7 +2,7 @@ namespace Crm\InvoicesModule\Components\InvoiceLabel; -use Crm\ApplicationModule\Widget\BaseLazyWidget; +use Crm\ApplicationModule\Models\Widget\BaseLazyWidget; /** * Simple invoice badge component. diff --git a/src/Components/PaymentSuccessInvoiceWidget/PaymentSuccessInvoiceWidget.php b/src/Components/PaymentSuccessInvoiceWidget/PaymentSuccessInvoiceWidget.php index 10b567d..1fae16b 100644 --- a/src/Components/PaymentSuccessInvoiceWidget/PaymentSuccessInvoiceWidget.php +++ b/src/Components/PaymentSuccessInvoiceWidget/PaymentSuccessInvoiceWidget.php @@ -2,8 +2,8 @@ namespace Crm\InvoicesModule\Components\PaymentSuccessInvoiceWidget; -use Crm\ApplicationModule\Widget\BaseLazyWidget; -use Crm\ApplicationModule\Widget\LazyWidgetManager; +use Crm\ApplicationModule\Models\Widget\BaseLazyWidget; +use Crm\ApplicationModule\Models\Widget\LazyWidgetManager; use Crm\InvoicesModule\Forms\UserInvoiceFormFactory; use Crm\InvoicesModule\Repositories\InvoicesRepository; use Crm\PaymentsModule\Models\Gateways\BankTransfer; diff --git a/src/DataProviders/ConfigFormDataProvider.php b/src/DataProviders/ConfigFormDataProvider.php index bfae718..cae3a0f 100644 --- a/src/DataProviders/ConfigFormDataProvider.php +++ b/src/DataProviders/ConfigFormDataProvider.php @@ -4,7 +4,7 @@ use Contributte\Translation\Translator; use Crm\AdminModule\DataProviders\ConfigFormDataProviderInterface; -use Crm\ApplicationModule\DataProvider\DataProviderException; +use Crm\ApplicationModule\Models\DataProvider\DataProviderException; use Crm\InvoicesModule\Repositories\InvoicesRepository; use Nette\Application\UI\Form; diff --git a/src/DataProviders/InvoicesUserDataProvider.php b/src/DataProviders/InvoicesUserDataProvider.php index 5abf5a4..ac62439 100644 --- a/src/DataProviders/InvoicesUserDataProvider.php +++ b/src/DataProviders/InvoicesUserDataProvider.php @@ -2,7 +2,7 @@ namespace Crm\InvoicesModule\DataProviders; -use Crm\ApplicationModule\User\UserDataProviderInterface; +use Crm\ApplicationModule\Models\User\UserDataProviderInterface; use Crm\InvoicesModule\Models\Generator\InvoiceGenerator; use Crm\PaymentsModule\Repositories\PaymentsRepository; diff --git a/src/DataProviders/UserFormDataProvider.php b/src/DataProviders/UserFormDataProvider.php index 6ef57cd..8ab50be 100644 --- a/src/DataProviders/UserFormDataProvider.php +++ b/src/DataProviders/UserFormDataProvider.php @@ -2,8 +2,8 @@ namespace Crm\InvoicesModule\DataProviders; -use Crm\ApplicationModule\DataProvider\DataProviderException; use Crm\ApplicationModule\Hermes\HermesMessage; +use Crm\ApplicationModule\Models\DataProvider\DataProviderException; use Crm\PaymentsModule\Repositories\PaymentsRepository; use Crm\UsersModule\DataProviders\UserFormDataProviderInterface; use Crm\UsersModule\Repositories\UsersRepository; diff --git a/src/Events/PaymentStatusChangeHandler.php b/src/Events/PaymentStatusChangeHandler.php index c8a7f8c..a1e5f2d 100644 --- a/src/Events/PaymentStatusChangeHandler.php +++ b/src/Events/PaymentStatusChangeHandler.php @@ -2,8 +2,8 @@ namespace Crm\InvoicesModule\Events; -use Crm\ApplicationModule\Config\ApplicationConfig; use Crm\ApplicationModule\Hermes\HermesMessage; +use Crm\ApplicationModule\Models\Config\ApplicationConfig; use Crm\PaymentsModule\Events\PaymentChangeStatusEvent; use Crm\PaymentsModule\Repositories\PaymentsRepository; use League\Event\AbstractListener; diff --git a/src/Events/PreNotificationEventHandler.php b/src/Events/PreNotificationEventHandler.php index 04eec10..76db7c5 100644 --- a/src/Events/PreNotificationEventHandler.php +++ b/src/Events/PreNotificationEventHandler.php @@ -2,7 +2,7 @@ namespace Crm\InvoicesModule\Events; -use Crm\ApplicationModule\Config\ApplicationConfig; +use Crm\ApplicationModule\Models\Config\ApplicationConfig; use Crm\InvoicesModule\Models\Generator\InvoiceGenerationException; use Crm\InvoicesModule\Models\Generator\InvoiceGenerator; use Crm\InvoicesModule\Models\Generator\PaymentNotInvoiceableException; diff --git a/src/Forms/ChangeInvoiceDetailsFormFactory.php b/src/Forms/ChangeInvoiceDetailsFormFactory.php index ddf9459..a78c1c5 100644 --- a/src/Forms/ChangeInvoiceDetailsFormFactory.php +++ b/src/Forms/ChangeInvoiceDetailsFormFactory.php @@ -2,9 +2,9 @@ namespace Crm\InvoicesModule\Forms; -use Crm\ApplicationModule\Config\ApplicationConfig; -use Crm\ApplicationModule\DataProvider\DataProviderManager; use Crm\ApplicationModule\Hermes\HermesMessage; +use Crm\ApplicationModule\Models\Config\ApplicationConfig; +use Crm\ApplicationModule\Models\DataProvider\DataProviderManager; use Crm\PaymentsModule\Repositories\PaymentsRepository; use Crm\UsersModule\DataProviders\AddressFormDataProviderInterface; use Crm\UsersModule\Repositories\AddressChangeRequestsRepository; diff --git a/src/Forms/ChangeInvoiceFormFactory.php b/src/Forms/ChangeInvoiceFormFactory.php index ea4f2fb..19a6897 100644 --- a/src/Forms/ChangeInvoiceFormFactory.php +++ b/src/Forms/ChangeInvoiceFormFactory.php @@ -2,7 +2,7 @@ namespace Crm\InvoicesModule\Forms; -use Crm\ApplicationModule\DataProvider\DataProviderManager; +use Crm\ApplicationModule\Models\DataProvider\DataProviderManager; use Crm\InvoicesModule\Repositories\InvoicesRepository; use Crm\UsersModule\DataProviders\AddressFormDataProviderInterface; use Crm\UsersModule\Repositories\CountriesRepository; diff --git a/src/Forms/UserInvoiceFormFactory.php b/src/Forms/UserInvoiceFormFactory.php index 2b26195..acc8ffb 100644 --- a/src/Forms/UserInvoiceFormFactory.php +++ b/src/Forms/UserInvoiceFormFactory.php @@ -3,8 +3,8 @@ namespace Crm\InvoicesModule\Forms; use Contributte\Translation\Translator; -use Crm\ApplicationModule\Config\ApplicationConfig; -use Crm\ApplicationModule\DataProvider\DataProviderManager; +use Crm\ApplicationModule\Models\Config\ApplicationConfig; +use Crm\ApplicationModule\Models\DataProvider\DataProviderManager; use Crm\UsersModule\DataProviders\AddressFormDataProviderInterface; use Crm\UsersModule\Repositories\AddressChangeRequestsRepository; use Crm\UsersModule\Repositories\AddressesRepository; diff --git a/src/InvoicesModule.php b/src/InvoicesModule.php index cfc8926..eae102e 100644 --- a/src/InvoicesModule.php +++ b/src/InvoicesModule.php @@ -2,17 +2,17 @@ namespace Crm\InvoicesModule; -use Crm\ApplicationModule\Commands\CommandsContainerInterface; -use Crm\ApplicationModule\Criteria\ScenariosCriteriaStorage; +use Crm\ApplicationModule\Application\CommandsContainerInterface; +use Crm\ApplicationModule\Application\Managers\SeederManager; use Crm\ApplicationModule\CrmModule; -use Crm\ApplicationModule\DataProvider\DataProviderManager; -use Crm\ApplicationModule\Event\EventsStorage; -use Crm\ApplicationModule\Event\LazyEventEmitter; -use Crm\ApplicationModule\Menu\MenuContainerInterface; -use Crm\ApplicationModule\Menu\MenuItem; -use Crm\ApplicationModule\SeederManager; -use Crm\ApplicationModule\User\UserDataRegistrator; -use Crm\ApplicationModule\Widget\LazyWidgetManagerInterface; +use Crm\ApplicationModule\Models\Criteria\ScenariosCriteriaStorage; +use Crm\ApplicationModule\Models\DataProvider\DataProviderManager; +use Crm\ApplicationModule\Models\Event\EventsStorage; +use Crm\ApplicationModule\Models\Event\LazyEventEmitter; +use Crm\ApplicationModule\Models\Menu\MenuContainerInterface; +use Crm\ApplicationModule\Models\Menu\MenuItem; +use Crm\ApplicationModule\Models\User\UserDataRegistrator; +use Crm\ApplicationModule\Models\Widget\LazyWidgetManagerInterface; use Crm\InvoicesModule\Commands\SendInvoiceCommand; use Crm\InvoicesModule\Components\DownloadReceiptButton\DownloadReceiptButtonFactory; use Crm\InvoicesModule\Components\DownloadReceiptButton\ReceiptAdminButtonFactory; diff --git a/src/Models/Generator/InvoiceGenerator.php b/src/Models/Generator/InvoiceGenerator.php index 278fbcf..6284a05 100644 --- a/src/Models/Generator/InvoiceGenerator.php +++ b/src/Models/Generator/InvoiceGenerator.php @@ -4,11 +4,11 @@ use Contributte\PdfResponse\PdfResponse; use Contributte\Translation\Translator; -use Crm\ApplicationModule\Config\ApplicationConfig; use Crm\ApplicationModule\Helpers\PriceHelper; -use Crm\ApplicationModule\RedisClientFactory; -use Crm\ApplicationModule\RedisClientTrait; -use Crm\ApplicationModule\RedisClientTraitException; +use Crm\ApplicationModule\Models\Config\ApplicationConfig; +use Crm\ApplicationModule\Models\Redis\RedisClientFactory; +use Crm\ApplicationModule\Models\Redis\RedisClientTrait; +use Crm\ApplicationModule\Models\Redis\RedisClientTraitException; use Crm\InvoicesModule\Models\InvoiceNumber\InvoiceNumberInterface; use Crm\InvoicesModule\Repositories\InvoicesRepository; use Crm\PaymentsModule\Repositories\PaymentsRepository; diff --git a/src/Models/Generator/ReceiptGenerator.php b/src/Models/Generator/ReceiptGenerator.php index ca05e4f..0a015ea 100644 --- a/src/Models/Generator/ReceiptGenerator.php +++ b/src/Models/Generator/ReceiptGenerator.php @@ -4,10 +4,10 @@ use Contributte\PdfResponse\PdfResponse; use Contributte\Translation\Translator; -use Crm\ApplicationModule\Config\ApplicationConfig; use Crm\ApplicationModule\Helpers\LocalizedDateHelper; use Crm\ApplicationModule\Helpers\PriceHelper; use Crm\ApplicationModule\Helpers\UserDateHelper; +use Crm\ApplicationModule\Models\Config\ApplicationConfig; use Latte\Engine; use Latte\Essential\TranslatorExtension; use Nette\Database\Table\ActiveRow; diff --git a/src/Repositories/InvoiceItemsRepository.php b/src/Repositories/InvoiceItemsRepository.php index 811442c..7523122 100644 --- a/src/Repositories/InvoiceItemsRepository.php +++ b/src/Repositories/InvoiceItemsRepository.php @@ -2,7 +2,7 @@ namespace Crm\InvoicesModule\Repositories; -use Crm\ApplicationModule\Repository; +use Crm\ApplicationModule\Models\Database\Repository; class InvoiceItemsRepository extends Repository { diff --git a/src/Repositories/InvoiceNumbersRepository.php b/src/Repositories/InvoiceNumbersRepository.php index 983dcdf..c28f51c 100644 --- a/src/Repositories/InvoiceNumbersRepository.php +++ b/src/Repositories/InvoiceNumbersRepository.php @@ -2,8 +2,8 @@ namespace Crm\InvoicesModule\Repositories; -use Crm\ApplicationModule\Repository; -use Crm\ApplicationModule\Repository\AuditLogRepository; +use Crm\ApplicationModule\Models\Database\Repository; +use Crm\ApplicationModule\Repositories\AuditLogRepository; use Nette\Database\Explorer; class InvoiceNumbersRepository extends Repository diff --git a/src/Repositories/InvoicesRepository.php b/src/Repositories/InvoicesRepository.php index b45cf8e..1c983d8 100644 --- a/src/Repositories/InvoicesRepository.php +++ b/src/Repositories/InvoicesRepository.php @@ -2,11 +2,11 @@ namespace Crm\InvoicesModule\Repositories; -use Crm\ApplicationModule\Config\ApplicationConfig; use Crm\ApplicationModule\Helpers\UserDateHelper; use Crm\ApplicationModule\Hermes\HermesMessage; -use Crm\ApplicationModule\Repository; -use Crm\ApplicationModule\Repository\AuditLogRepository; +use Crm\ApplicationModule\Models\Config\ApplicationConfig; +use Crm\ApplicationModule\Models\Database\Repository; +use Crm\ApplicationModule\Repositories\AuditLogRepository; use Crm\InvoicesModule\Events\NewInvoiceEvent; use Crm\PaymentsModule\Repositories\PaymentsRepository; use Crm\SubscriptionsModule\Models\PaymentItem\SubscriptionTypePaymentItem; diff --git a/src/Scenarios/HasInvoiceCriteria.php b/src/Scenarios/HasInvoiceCriteria.php index 72c0b5f..5ebbeca 100644 --- a/src/Scenarios/HasInvoiceCriteria.php +++ b/src/Scenarios/HasInvoiceCriteria.php @@ -3,8 +3,8 @@ namespace Crm\InvoicesModule\Scenarios; use Contributte\Translation\Translator; -use Crm\ApplicationModule\Criteria\ScenarioParams\BooleanParam; -use Crm\ApplicationModule\Criteria\ScenariosCriteriaInterface; +use Crm\ApplicationModule\Models\Criteria\ScenarioParams\BooleanParam; +use Crm\ApplicationModule\Models\Criteria\ScenariosCriteriaInterface; use Nette\Database\Table\ActiveRow; use Nette\Database\Table\Selection; diff --git a/src/Seeders/ConfigsSeeder.php b/src/Seeders/ConfigsSeeder.php index 0c32473..80b98bd 100644 --- a/src/Seeders/ConfigsSeeder.php +++ b/src/Seeders/ConfigsSeeder.php @@ -3,9 +3,9 @@ namespace Crm\InvoicesModule\Seeders; use Crm\ApplicationModule\Builder\ConfigBuilder; -use Crm\ApplicationModule\Config\ApplicationConfig; -use Crm\ApplicationModule\Config\Repository\ConfigCategoriesRepository; -use Crm\ApplicationModule\Config\Repository\ConfigsRepository; +use Crm\ApplicationModule\Models\Config\ApplicationConfig; +use Crm\ApplicationModule\Repositories\ConfigCategoriesRepository; +use Crm\ApplicationModule\Repositories\ConfigsRepository; use Crm\ApplicationModule\Seeders\ConfigsTrait; use Crm\ApplicationModule\Seeders\ISeeder; use Crm\InvoicesModule\Repositories\InvoicesRepository; diff --git a/src/Tests/BaseTestCase.php b/src/Tests/BaseTestCase.php index e9f9cfe..f3a74a4 100644 --- a/src/Tests/BaseTestCase.php +++ b/src/Tests/BaseTestCase.php @@ -2,7 +2,7 @@ namespace Crm\InvoicesModule\Tests; -use Crm\ApplicationModule\Config\Repository\ConfigsRepository; +use Crm\ApplicationModule\Repositories\ConfigsRepository; use Crm\ApplicationModule\Seeders\CountriesSeeder; use Crm\ApplicationModule\Tests\DatabaseTestCase; use Crm\InvoicesModule\Repositories\InvoiceNumbersRepository; diff --git a/src/Tests/Events/PaymentStatusChangeHandlerTest.php b/src/Tests/Events/PaymentStatusChangeHandlerTest.php index 7e50d73..e258320 100644 --- a/src/Tests/Events/PaymentStatusChangeHandlerTest.php +++ b/src/Tests/Events/PaymentStatusChangeHandlerTest.php @@ -2,9 +2,9 @@ namespace Crm\InvoicesModule\Tests\Events; -use Crm\ApplicationModule\Config\ApplicationConfig; -use Crm\ApplicationModule\Config\Repository\ConfigCategoriesRepository; -use Crm\ApplicationModule\Config\Repository\ConfigsRepository; +use Crm\ApplicationModule\Models\Config\ApplicationConfig; +use Crm\ApplicationModule\Repositories\ConfigCategoriesRepository; +use Crm\ApplicationModule\Repositories\ConfigsRepository; use Crm\ApplicationModule\Tests\DatabaseTestCase; use Crm\InvoicesModule\Events\PaymentStatusChangeHandler; use Crm\InvoicesModule\Hermes\GenerateInvoiceHandler; diff --git a/src/Tests/Generator/InvoicesGeneratorGenerateTest.php b/src/Tests/Generator/InvoicesGeneratorGenerateTest.php index dffe2e2..a32030a 100644 --- a/src/Tests/Generator/InvoicesGeneratorGenerateTest.php +++ b/src/Tests/Generator/InvoicesGeneratorGenerateTest.php @@ -3,7 +3,7 @@ namespace Crm\InvoicesModule\Tests\Generator; use Contributte\PdfResponse\PdfResponse; -use Crm\ApplicationModule\Config\Repository\ConfigsRepository; +use Crm\ApplicationModule\Repositories\ConfigsRepository; use Crm\ApplicationModule\Tests\DatabaseTestCase; use Crm\InvoicesModule\Models\Generator\InvoiceGenerator; use Crm\InvoicesModule\Models\Generator\PaymentNotInvoiceableException; diff --git a/src/Tests/Hermes/GenerateInvoiceHandlerTest.php b/src/Tests/Hermes/GenerateInvoiceHandlerTest.php index f4bc94e..01e02fb 100644 --- a/src/Tests/Hermes/GenerateInvoiceHandlerTest.php +++ b/src/Tests/Hermes/GenerateInvoiceHandlerTest.php @@ -2,9 +2,9 @@ namespace Crm\InvoicesModule\Tests\Hermes; -use Crm\ApplicationModule\Config\Repository\ConfigCategoriesRepository; -use Crm\ApplicationModule\Config\Repository\ConfigsRepository; use Crm\ApplicationModule\Hermes\HermesMessage; +use Crm\ApplicationModule\Repositories\ConfigCategoriesRepository; +use Crm\ApplicationModule\Repositories\ConfigsRepository; use Crm\ApplicationModule\Seeders\ConfigsSeeder; use Crm\ApplicationModule\Tests\DatabaseTestCase; use Crm\InvoicesModule\Hermes\GenerateInvoiceHandler; diff --git a/src/Tests/PreNotificationHandlerTest.php b/src/Tests/PreNotificationHandlerTest.php index 0a426e6..10f3d69 100644 --- a/src/Tests/PreNotificationHandlerTest.php +++ b/src/Tests/PreNotificationHandlerTest.php @@ -2,8 +2,8 @@ namespace Crm\InvoicesModule\Tests; -use Crm\ApplicationModule\Config\Repository\ConfigsRepository; -use Crm\ApplicationModule\Event\LazyEventEmitter; +use Crm\ApplicationModule\Models\Event\LazyEventEmitter; +use Crm\ApplicationModule\Repositories\ConfigsRepository; use Crm\InvoicesModule\Events\PreNotificationEventHandler; use Crm\PaymentsModule\Events\PaymentChangeStatusEvent; use Crm\PaymentsModule\Events\PaymentStatusChangeHandler; diff --git a/src/Tests/Repository/InvoicesRepositoryTest.php b/src/Tests/Repository/InvoicesRepositoryTest.php index 4579a57..1a9838c 100644 --- a/src/Tests/Repository/InvoicesRepositoryTest.php +++ b/src/Tests/Repository/InvoicesRepositoryTest.php @@ -2,9 +2,9 @@ namespace Crm\InvoicesModule\Tests\Repository; -use Crm\ApplicationModule\Config\ApplicationConfig; -use Crm\ApplicationModule\Config\Repository\ConfigCategoriesRepository; -use Crm\ApplicationModule\Config\Repository\ConfigsRepository; +use Crm\ApplicationModule\Models\Config\ApplicationConfig; +use Crm\ApplicationModule\Repositories\ConfigCategoriesRepository; +use Crm\ApplicationModule\Repositories\ConfigsRepository; use Crm\ApplicationModule\Seeders\ConfigsSeeder as ApplicationConfigsSeeder; use Crm\ApplicationModule\Tests\DatabaseTestCase; use Crm\InvoicesModule\Models\InvoiceNumber\InvoiceNumber; diff --git a/src/migrations/20230222072811_invoices_country_id_nullable.php b/src/migrations/20230222072811_invoices_country_id_nullable.php index 3c9d2d1..0d31395 100644 --- a/src/migrations/20230222072811_invoices_country_id_nullable.php +++ b/src/migrations/20230222072811_invoices_country_id_nullable.php @@ -1,7 +1,7 @@