Skip to content

Commit

Permalink
[PSR4] ApplicationModule - (Rector) Fix uses of changed classes
Browse files Browse the repository at this point in the history
remp/crm#2228
  • Loading branch information
markoph committed Jan 22, 2024
1 parent 615fd2a commit a399283
Show file tree
Hide file tree
Showing 28 changed files with 43 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Crm\FamilyModule\Components\FamilyRequestsDashboardWidget;

use Crm\ApplicationModule\Widget\BaseLazyWidget;
use Crm\ApplicationModule\Widget\LazyWidgetManager;
use Crm\ApplicationModule\Models\Widget\BaseLazyWidget;
use Crm\ApplicationModule\Models\Widget\LazyWidgetManager;
use Crm\FamilyModule\Models\FamilyRequests;

class FamilyRequestsDashboardWidget extends BaseLazyWidget
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Crm\FamilyModule\Components\FamilyRequestsListWidget;

use Crm\ApplicationModule\Widget\BaseLazyWidget;
use Crm\ApplicationModule\Widget\LazyWidgetManager;
use Crm\ApplicationModule\Models\Widget\BaseLazyWidget;
use Crm\ApplicationModule\Models\Widget\LazyWidgetManager;
use Crm\FamilyModule\Models\FamilyRequests;
use Crm\FamilyModule\Models\MissingFamilySubscriptionTypeException;
use Crm\FamilyModule\Repositories\FamilyRequestsRepository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Crm\FamilyModule\Components\FamilySubscriptionTypeDetailsWidget;

use Crm\ApplicationModule\Widget\BaseLazyWidget;
use Crm\ApplicationModule\Widget\LazyWidgetManager;
use Crm\ApplicationModule\Models\Widget\BaseLazyWidget;
use Crm\ApplicationModule\Models\Widget\LazyWidgetManager;
use Crm\FamilyModule\Repositories\FamilySubscriptionTypesRepository;
use Nette\Database\Table\ActiveRow;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Crm\FamilyModule\Components\MasterFamilySubscriptionInfoWidget;

use Crm\AdminModule\Presenters\AdminPresenter;
use Crm\ApplicationModule\Widget\BaseLazyWidget;
use Crm\ApplicationModule\Widget\LazyWidgetManager;
use Crm\ApplicationModule\Models\Widget\BaseLazyWidget;
use Crm\ApplicationModule\Models\Widget\LazyWidgetManager;
use Crm\FamilyModule\Models\DonateSubscription;
use Crm\FamilyModule\Repositories\FamilyRequestsRepository;
use Crm\FamilyModule\Repositories\FamilySubscriptionTypesRepository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

namespace Crm\FamilyModule\Components\SlaveFamilySubscriptionInfoWidget;

use Crm\ApplicationModule\Widget\BaseLazyWidget;
use Crm\ApplicationModule\Widget\LazyWidgetManager;
use Crm\ApplicationModule\Models\Widget\BaseLazyWidget;
use Crm\ApplicationModule\Models\Widget\LazyWidgetManager;
use Crm\FamilyModule\Repositories\FamilyRequestsRepository;
use Crm\UsersModule\Repositories\UsersRepository;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Crm\FamilyModule\Components\UsersAbusiveAdditionalWidget;

use Crm\ApplicationModule\Widget\BaseLazyWidget;
use Crm\ApplicationModule\Widget\LazyWidgetManager;
use Crm\ApplicationModule\Models\Widget\BaseLazyWidget;
use Crm\ApplicationModule\Models\Widget\LazyWidgetManager;
use Crm\FamilyModule\Repositories\FamilyRequestsRepository;
use Crm\FamilyModule\Repositories\FamilySubscriptionTypesRepository;
use Nette\Database\Table\ActiveRow;
Expand Down
2 changes: 1 addition & 1 deletion src/DataProviders/EmailFormDataProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Crm\FamilyModule\DataProviders;

use Crm\ApplicationModule\DataProvider\DataProviderInterface;
use Crm\ApplicationModule\Models\DataProvider\DataProviderInterface;
use Nette\Application\UI\Form;
use Nette\Database\Table\ActiveRow;

Expand Down
2 changes: 1 addition & 1 deletion src/DataProviders/RequestFormDataProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Crm\FamilyModule\DataProviders;

use Crm\ApplicationModule\DataProvider\DataProviderInterface;
use Crm\ApplicationModule\Models\DataProvider\DataProviderInterface;
use Nette\Application\UI\Form;

interface RequestFormDataProviderInterface extends DataProviderInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Events/SubscriptionShortenedHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Crm\FamilyModule\Events;

use Crm\ApplicationModule\NowTrait;
use Crm\ApplicationModule\Models\NowTrait;
use Crm\FamilyModule\Models\DonateSubscription;
use Crm\FamilyModule\Repositories\FamilyRequestsRepository;
use Crm\FamilyModule\Repositories\FamilySubscriptionTypesRepository;
Expand Down
2 changes: 1 addition & 1 deletion src/Events/SubscriptionUpdatedHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Crm\FamilyModule\Events;

use Crm\ApplicationModule\NowTrait;
use Crm\ApplicationModule\Models\NowTrait;
use Crm\FamilyModule\Repositories\FamilyRequestsRepository;
use Crm\FamilyModule\Repositories\FamilySubscriptionTypesRepository;
use Crm\SubscriptionsModule\Events\SubscriptionUpdatedEvent;
Expand Down
12 changes: 6 additions & 6 deletions src/FamilyModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
use Crm\ApiModule\Models\Api\ApiRoutersContainerInterface;
use Crm\ApiModule\Models\Router\ApiIdentifier;
use Crm\ApiModule\Models\Router\ApiRoute;
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\Event\EventsStorage;
use Crm\ApplicationModule\Event\LazyEventEmitter;
use Crm\ApplicationModule\SeederManager;
use Crm\ApplicationModule\Widget\LazyWidgetManagerInterface;
use Crm\ApplicationModule\Models\Criteria\ScenariosCriteriaStorage;
use Crm\ApplicationModule\Models\Event\EventsStorage;
use Crm\ApplicationModule\Models\Event\LazyEventEmitter;
use Crm\ApplicationModule\Models\Widget\LazyWidgetManagerInterface;
use Crm\FamilyModule\Api\ActivateFamilyRequestApiHandler;
use Crm\FamilyModule\Api\ListFamilyRequestsApiHandler;
use Crm\FamilyModule\Commands\GenerateFamilyRequestsCommand;
Expand Down
4 changes: 2 additions & 2 deletions src/Forms/RequestFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Crm\FamilyModule\Forms;

use Crm\ApplicationModule\ActiveRow;
use Crm\ApplicationModule\DataProvider\DataProviderManager;
use Crm\ApplicationModule\Helpers\PriceHelper;
use Crm\ApplicationModule\Models\DataProvider\DataProviderManager;
use Crm\ApplicationModule\Models\Database\ActiveRow;
use Crm\FamilyModule\DataProviders\RequestFormDataProviderInterface;
use Crm\FamilyModule\Models\FamilyRequests;
use Crm\FamilyModule\Repositories\FamilySubscriptionTypesRepository;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/DonateSubscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Crm\FamilyModule\Models;

use Crm\ApplicationModule\NowTrait;
use Crm\ApplicationModule\Models\NowTrait;
use Crm\FamilyModule\FamilyModule;
use Crm\FamilyModule\Repositories\FamilyRequestsRepository;
use Crm\FamilyModule\Repositories\FamilySubscriptionTypesRepository;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Extension/ExtendFamilyExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Crm\FamilyModule\Models\Extension;

use Crm\ApplicationModule\NowTrait;
use Crm\ApplicationModule\Models\NowTrait;
use Crm\FamilyModule\Repositories\FamilySubscriptionTypesRepository;
use Crm\SubscriptionsModule\Models\Extension\Extension;
use Crm\SubscriptionsModule\Models\Extension\ExtensionInterface;
Expand Down
4 changes: 2 additions & 2 deletions src/Models/FamilyRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Crm\FamilyModule\Models;

use Crm\ApplicationModule\Cache\CacheRepository;
use Crm\ApplicationModule\Selection;
use Crm\ApplicationModule\Models\Database\Selection;
use Crm\ApplicationModule\Repositories\CacheRepository;
use Crm\FamilyModule\Repositories\FamilyRequestsRepository;
use Crm\FamilyModule\Repositories\FamilySubscriptionTypesRepository;
use Crm\PaymentsModule\Repositories\PaymentMetaRepository;
Expand Down
4 changes: 2 additions & 2 deletions src/Models/Scenarios/IsFamilyMasterCriteria.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Crm\FamilyModule\Models\Scenarios;

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;

Expand Down
4 changes: 2 additions & 2 deletions src/Models/Scenarios/IsFamilySlaveCriteria.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Crm\FamilyModule\Models\Scenarios;

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;

Expand Down
2 changes: 1 addition & 1 deletion src/Presenters/RequestsPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Crm\FamilyModule\Presenters;

use Crm\ApplicationModule\DataProvider\DataProviderManager;
use Crm\ApplicationModule\Helpers\MaskEmailHelper;
use Crm\ApplicationModule\Models\DataProvider\DataProviderManager;
use Crm\ApplicationModule\Presenters\FrontendPresenter;
use Crm\FamilyModule\DataProviders\EmailFormDataProviderInterface;
use Crm\FamilyModule\Models\DonateSubscription;
Expand Down
2 changes: 1 addition & 1 deletion src/Repositories/FamilyRequestsRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Crm\FamilyModule\Repositories;

use Crm\ApplicationModule\Repository;
use Crm\ApplicationModule\Models\Database\Repository;
use Crm\FamilyModule\Events\FamilyRequestCreatedEvent;
use League\Event\Emitter;
use Nette\Caching\Storage;
Expand Down
2 changes: 1 addition & 1 deletion src/Repositories/FamilySubscriptionTypesRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Crm\FamilyModule\Repositories;

use Crm\ApplicationModule\Repository;
use Crm\ApplicationModule\Models\Database\Repository;
use Nette\Database\Table\ActiveRow;

class FamilySubscriptionTypesRepository extends Repository
Expand Down
2 changes: 1 addition & 1 deletion src/Seeders/FamilySeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Crm\FamilyModule\Seeders;

use Crm\ApplicationModule\Repositories\SnippetsRepository;
use Crm\ApplicationModule\Seeders\ISeeder;
use Crm\ApplicationModule\Snippet\Repository\SnippetsRepository;
use Crm\SubscriptionsModule\Repositories\SubscriptionTypeNamesRepository;
use Symfony\Component\Console\Output\OutputInterface;

Expand Down
2 changes: 1 addition & 1 deletion src/Tests/ActivateFamilyRequestApiHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Crm\FamilyModule\Tests;

use Crm\ApiModule\Tests\ApiTestTrait;
use Crm\ApplicationModule\Event\LazyEventEmitter;
use Crm\ApplicationModule\Models\Event\LazyEventEmitter;
use Crm\FamilyModule\Api\ActivateFamilyRequestApiHandler;
use Crm\FamilyModule\Events\NewSubscriptionHandler;
use Crm\FamilyModule\Models\DonateSubscription;
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/ActivateRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Crm\FamilyModule\Tests;

use Crm\ApplicationModule\Event\LazyEventEmitter;
use Crm\ApplicationModule\Models\Event\LazyEventEmitter;
use Crm\FamilyModule\Events\NewSubscriptionHandler;
use Crm\FamilyModule\Models\DonateSubscription;
use Crm\FamilyModule\Models\FamilyRequests;
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/BaseTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Crm\FamilyModule\Tests;

use Crm\ApplicationModule\Cache\CacheRepository;
use Crm\ApplicationModule\Repositories\CacheRepository;
use Crm\ApplicationModule\Tests\DatabaseTestCase;
use Crm\FamilyModule\Repositories\FamilyRequestsRepository;
use Crm\FamilyModule\Repositories\FamilySubscriptionTypesRepository;
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/FamilyRequestsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Crm\FamilyModule\Tests;

use Crm\ApplicationModule\Event\LazyEventEmitter;
use Crm\ApplicationModule\Models\Event\LazyEventEmitter;
use Crm\FamilyModule\Models\FamilyRequests;
use Crm\FamilyModule\Models\InvalidConfigurationException;
use Crm\FamilyModule\Models\MissingFamilySubscriptionTypeException;
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/FamilySubscriptionsRenewalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Crm\FamilyModule\Tests;

use Crm\ApplicationModule\Event\LazyEventEmitter;
use Crm\ApplicationModule\Models\Event\LazyEventEmitter;
use Crm\FamilyModule\Events\NewSubscriptionHandler;
use Crm\FamilyModule\Models\DonateSubscription;
use Crm\FamilyModule\Models\FamilyRequests;
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/ListFamilyRequestsApiHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Crm\FamilyModule\Tests;

use Crm\ApiModule\Tests\ApiTestTrait;
use Crm\ApplicationModule\Event\LazyEventEmitter;
use Crm\ApplicationModule\Models\Event\LazyEventEmitter;
use Crm\FamilyModule\Api\ListFamilyRequestsApiHandler;
use Crm\FamilyModule\Events\NewSubscriptionHandler;
use Crm\FamilyModule\Models\DonateSubscription;
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/ScenarioConditionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Crm\FamilyModule\Tests;

use Contributte\Translation\Translator;
use Crm\ApplicationModule\Criteria\ScenariosCriteriaStorage;
use Crm\ApplicationModule\Models\Criteria\ScenariosCriteriaStorage;
use Crm\FamilyModule\Events\NewSubscriptionHandler;
use Crm\FamilyModule\FamilyModule;
use Crm\FamilyModule\Models\DonateSubscription;
Expand Down

0 comments on commit a399283

Please sign in to comment.