diff --git a/Classes/Authentication/HttpBackendUserAuthentication.php b/Classes/Authentication/HttpBackendUserAuthentication.php index 48ba8911..78b72bec 100644 --- a/Classes/Authentication/HttpBackendUserAuthentication.php +++ b/Classes/Authentication/HttpBackendUserAuthentication.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Pixelant\Interest\Authentication; +namespace FriendsOfTYPO3\Interest\Authentication; -use Pixelant\Interest\Domain\Repository\TokenRepository; -use Pixelant\Interest\RequestHandler\Exception\InvalidArgumentException; -use Pixelant\Interest\RequestHandler\Exception\UnauthorizedAccessException; +use FriendsOfTYPO3\Interest\Domain\Repository\TokenRepository; +use FriendsOfTYPO3\Interest\RequestHandler\Exception\InvalidArgumentException; +use FriendsOfTYPO3\Interest\RequestHandler\Exception\UnauthorizedAccessException; use Psr\Http\Message\ServerRequestInterface; use TYPO3\CMS\Core\Authentication\BackendUserAuthentication; use TYPO3\CMS\Core\Utility\GeneralUtility; diff --git a/Classes/Command/AbstractReceiveCommandController.php b/Classes/Command/AbstractReceiveCommandController.php index dea093cc..5baa06c0 100644 --- a/Classes/Command/AbstractReceiveCommandController.php +++ b/Classes/Command/AbstractReceiveCommandController.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\Command; +namespace FriendsOfTYPO3\Interest\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; diff --git a/Classes/Command/AbstractRecordCommandController.php b/Classes/Command/AbstractRecordCommandController.php index 1bc4c4ff..d01c733a 100644 --- a/Classes/Command/AbstractRecordCommandController.php +++ b/Classes/Command/AbstractRecordCommandController.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Pixelant\Interest\Command; +namespace FriendsOfTYPO3\Interest\Command; -use Pixelant\Interest\Context; -use Pixelant\Interest\Database\RelationHandlerWithoutReferenceIndex; +use FriendsOfTYPO3\Interest\Context; +use FriendsOfTYPO3\Interest\Database\RelationHandlerWithoutReferenceIndex; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Exception\InvalidOptionException; use Symfony\Component\Console\Input\InputInterface; diff --git a/Classes/Command/ClearRecordHashCommandController.php b/Classes/Command/ClearRecordHashCommandController.php index d4c9e463..78609c78 100644 --- a/Classes/Command/ClearRecordHashCommandController.php +++ b/Classes/Command/ClearRecordHashCommandController.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace Pixelant\Interest\Command; +namespace FriendsOfTYPO3\Interest\Command; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Helper\Table; use Symfony\Component\Console\Input\InputArgument; diff --git a/Classes/Command/CreateCommandController.php b/Classes/Command/CreateCommandController.php index 7acda892..b42e7414 100644 --- a/Classes/Command/CreateCommandController.php +++ b/Classes/Command/CreateCommandController.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Pixelant\Interest\Command; +namespace FriendsOfTYPO3\Interest\Command; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Exception\StopRecordOperationException; -use Pixelant\Interest\DataHandling\Operation\Exception\IdentityConflictException; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; -use Pixelant\Interest\Domain\Model\Dto\RecordInstanceIdentifier; -use Pixelant\Interest\Domain\Model\Dto\RecordRepresentation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Exception\StopRecordOperationException; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Exception\IdentityConflictException; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; +use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordInstanceIdentifier; +use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordRepresentation; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; diff --git a/Classes/Command/DeleteCommandController.php b/Classes/Command/DeleteCommandController.php index 8e38389f..96cd11e9 100644 --- a/Classes/Command/DeleteCommandController.php +++ b/Classes/Command/DeleteCommandController.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Pixelant\Interest\Command; +namespace FriendsOfTYPO3\Interest\Command; -use Pixelant\Interest\Context; -use Pixelant\Interest\Database\RelationHandlerWithoutReferenceIndex; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Exception\StopRecordOperationException; -use Pixelant\Interest\Domain\Model\Dto\RecordInstanceIdentifier; -use Pixelant\Interest\Domain\Model\Dto\RecordRepresentation; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; +use FriendsOfTYPO3\Interest\Context; +use FriendsOfTYPO3\Interest\Database\RelationHandlerWithoutReferenceIndex; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Exception\StopRecordOperationException; +use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordInstanceIdentifier; +use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordRepresentation; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; diff --git a/Classes/Command/PendingRelationsCommandController.php b/Classes/Command/PendingRelationsCommandController.php index d8df248f..ca938c28 100644 --- a/Classes/Command/PendingRelationsCommandController.php +++ b/Classes/Command/PendingRelationsCommandController.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Pixelant\Interest\Command; +namespace FriendsOfTYPO3\Interest\Command; use Doctrine\DBAL\Driver\Result; -use Pixelant\Interest\DataHandling\DataHandler; -use Pixelant\Interest\Domain\Repository\Exception\InvalidQueryResultException; -use Pixelant\Interest\Domain\Repository\PendingRelationsRepository; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; -use Pixelant\Interest\Utility\RelationUtility; +use FriendsOfTYPO3\Interest\DataHandling\DataHandler; +use FriendsOfTYPO3\Interest\Domain\Repository\Exception\InvalidQueryResultException; +use FriendsOfTYPO3\Interest\Domain\Repository\PendingRelationsRepository; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; +use FriendsOfTYPO3\Interest\Utility\RelationUtility; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Helper\ProgressBar; use Symfony\Component\Console\Helper\Table; diff --git a/Classes/Command/ReadCommandController.php b/Classes/Command/ReadCommandController.php index 4098174b..291498b7 100644 --- a/Classes/Command/ReadCommandController.php +++ b/Classes/Command/ReadCommandController.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\Command; +namespace FriendsOfTYPO3\Interest\Command; /** * Command for reading data from a record. diff --git a/Classes/Command/UpdateCommandController.php b/Classes/Command/UpdateCommandController.php index 337ac7cd..bc0f924c 100644 --- a/Classes/Command/UpdateCommandController.php +++ b/Classes/Command/UpdateCommandController.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Pixelant\Interest\Command; +namespace FriendsOfTYPO3\Interest\Command; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Exception\StopRecordOperationException; -use Pixelant\Interest\DataHandling\Operation\Exception\NotFoundException; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; -use Pixelant\Interest\Domain\Model\Dto\RecordInstanceIdentifier; -use Pixelant\Interest\Domain\Model\Dto\RecordRepresentation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Exception\StopRecordOperationException; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Exception\NotFoundException; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; +use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordInstanceIdentifier; +use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordRepresentation; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; diff --git a/Classes/Configuration/ConfigurationProvider.php b/Classes/Configuration/ConfigurationProvider.php index ac555849..b30f1b7e 100644 --- a/Classes/Configuration/ConfigurationProvider.php +++ b/Classes/Configuration/ConfigurationProvider.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\Configuration; +namespace FriendsOfTYPO3\Interest\Configuration; use TYPO3\CMS\Core\Configuration\Exception\ExtensionConfigurationExtensionNotConfiguredException; use TYPO3\CMS\Core\Configuration\ExtensionConfiguration; diff --git a/Classes/Context.php b/Classes/Context.php index f23d7d39..3cc370ca 100644 --- a/Classes/Context.php +++ b/Classes/Context.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest; +namespace FriendsOfTYPO3\Interest; class Context { diff --git a/Classes/DataHandling/DataHandler.php b/Classes/DataHandling/DataHandler.php index 0e09b361..cd7a6396 100644 --- a/Classes/DataHandling/DataHandler.php +++ b/Classes/DataHandling/DataHandler.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling; +namespace FriendsOfTYPO3\Interest\DataHandling; use Doctrine\DBAL\Exception\DeadlockException; -use Pixelant\Interest\Context; +use FriendsOfTYPO3\Interest\Context; use TYPO3\CMS\Core\DataHandling\DataHandler as Typo3DataHandler; class DataHandler extends Typo3DataHandler diff --git a/Classes/DataHandling/Operation/AbstractConstructiveRecordOperation.php b/Classes/DataHandling/Operation/AbstractConstructiveRecordOperation.php index f7feaf97..2fd8dffc 100644 --- a/Classes/DataHandling/Operation/AbstractConstructiveRecordOperation.php +++ b/Classes/DataHandling/Operation/AbstractConstructiveRecordOperation.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation; - -use Pixelant\Interest\Configuration\ConfigurationProvider; -use Pixelant\Interest\DataHandling\DataHandler; -use Pixelant\Interest\DataHandling\Operation\Event\Exception\StopRecordOperationException; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; -use Pixelant\Interest\Domain\Model\Dto\RecordRepresentation; -use Pixelant\Interest\Domain\Repository\PendingRelationsRepository; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation; + +use FriendsOfTYPO3\Interest\Configuration\ConfigurationProvider; +use FriendsOfTYPO3\Interest\DataHandling\DataHandler; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Exception\StopRecordOperationException; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; +use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordRepresentation; +use FriendsOfTYPO3\Interest\Domain\Repository\PendingRelationsRepository; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; use TYPO3\CMS\Core\EventDispatcher\EventDispatcher; use TYPO3\CMS\Core\Utility\GeneralUtility; diff --git a/Classes/DataHandling/Operation/AbstractRecordOperation.php b/Classes/DataHandling/Operation/AbstractRecordOperation.php index f731cc99..92a2fd54 100644 --- a/Classes/DataHandling/Operation/AbstractRecordOperation.php +++ b/Classes/DataHandling/Operation/AbstractRecordOperation.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation; - -use Pixelant\Interest\Configuration\ConfigurationProvider; -use Pixelant\Interest\DataHandling\DataHandler; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\Message\DataHandlerSuccessMessage; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; -use Pixelant\Interest\DataHandling\Operation\Exception\DataHandlerErrorException; -use Pixelant\Interest\DataHandling\Operation\Exception\IncompleteOperationException; -use Pixelant\Interest\DataHandling\Operation\Message\MessageInterface; -use Pixelant\Interest\DataHandling\Operation\Message\ReplacesPreviousMessageInterface; -use Pixelant\Interest\DataHandling\Operation\Message\RequiredMessageInterface; -use Pixelant\Interest\Domain\Model\Dto\RecordRepresentation; -use Pixelant\Interest\Domain\Repository\PendingRelationsRepository; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation; + +use FriendsOfTYPO3\Interest\Configuration\ConfigurationProvider; +use FriendsOfTYPO3\Interest\DataHandling\DataHandler; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\Message\DataHandlerSuccessMessage; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Exception\DataHandlerErrorException; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Exception\IncompleteOperationException; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Message\MessageInterface; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Message\ReplacesPreviousMessageInterface; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Message\RequiredMessageInterface; +use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordRepresentation; +use FriendsOfTYPO3\Interest\Domain\Repository\PendingRelationsRepository; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; use TYPO3\CMS\Core\EventDispatcher\EventDispatcher; use TYPO3\CMS\Core\Site\Entity\SiteLanguage; use TYPO3\CMS\Core\Utility\GeneralUtility; diff --git a/Classes/DataHandling/Operation/CreateRecordOperation.php b/Classes/DataHandling/Operation/CreateRecordOperation.php index 017686ad..0cd8cd19 100644 --- a/Classes/DataHandling/Operation/CreateRecordOperation.php +++ b/Classes/DataHandling/Operation/CreateRecordOperation.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation; -use Pixelant\Interest\DataHandling\Operation\Exception\IdentityConflictException; -use Pixelant\Interest\Domain\Model\Dto\RecordRepresentation; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Exception\IdentityConflictException; +use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordRepresentation; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; use TYPO3\CMS\Core\Utility\GeneralUtility; /** diff --git a/Classes/DataHandling/Operation/DeleteRecordOperation.php b/Classes/DataHandling/Operation/DeleteRecordOperation.php index 6a8af528..fa770aef 100644 --- a/Classes/DataHandling/Operation/DeleteRecordOperation.php +++ b/Classes/DataHandling/Operation/DeleteRecordOperation.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation; -use Pixelant\Interest\Configuration\ConfigurationProvider; -use Pixelant\Interest\DataHandling\DataHandler; -use Pixelant\Interest\DataHandling\Operation\Event\Exception\StopRecordOperationException; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; -use Pixelant\Interest\DataHandling\Operation\Exception\NotFoundException; -use Pixelant\Interest\Domain\Model\Dto\RecordRepresentation; -use Pixelant\Interest\Domain\Repository\PendingRelationsRepository; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; +use FriendsOfTYPO3\Interest\Configuration\ConfigurationProvider; +use FriendsOfTYPO3\Interest\DataHandling\DataHandler; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Exception\StopRecordOperationException; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Exception\NotFoundException; +use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordRepresentation; +use FriendsOfTYPO3\Interest\Domain\Repository\PendingRelationsRepository; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; use TYPO3\CMS\Core\EventDispatcher\EventDispatcher; use TYPO3\CMS\Core\Utility\GeneralUtility; @@ -22,7 +22,7 @@ class DeleteRecordOperation extends AbstractRecordOperation { /** * @param RecordRepresentation $recordRepresentation - * @throws \Pixelant\Interest\RequestHandler\Exception\NotFoundException + * @throws \FriendsOfTYPO3\Interest\RequestHandler\Exception\NotFoundException * @throws StopRecordOperationException */ public function __construct(RecordRepresentation $recordRepresentation) diff --git a/Classes/DataHandling/Operation/Event/AbstractRecordOperationEvent.php b/Classes/DataHandling/Operation/Event/AbstractRecordOperationEvent.php index b83a018e..3c1d4b80 100644 --- a/Classes/DataHandling/Operation/Event/AbstractRecordOperationEvent.php +++ b/Classes/DataHandling/Operation/Event/AbstractRecordOperationEvent.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event; -use Pixelant\Interest\DataHandling\Operation\AbstractRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\AbstractRecordOperation; /** * Event called after the completion of an AbstractRecordOperation. diff --git a/Classes/DataHandling/Operation/Event/Exception/BeforeRecordOperationEventException.php b/Classes/DataHandling/Operation/Event/Exception/BeforeRecordOperationEventException.php index d37ce142..8ea58e80 100644 --- a/Classes/DataHandling/Operation/Event/Exception/BeforeRecordOperationEventException.php +++ b/Classes/DataHandling/Operation/Event/Exception/BeforeRecordOperationEventException.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Exception; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Exception; -use Pixelant\Interest\DataHandling\Operation\Exception\AbstractException; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Exception\AbstractException; /** * An exception thrown to stop execution of a record operation. diff --git a/Classes/DataHandling/Operation/Event/Exception/StopRecordOperationException.php b/Classes/DataHandling/Operation/Event/Exception/StopRecordOperationException.php index 529033b2..830b7d73 100644 --- a/Classes/DataHandling/Operation/Event/Exception/StopRecordOperationException.php +++ b/Classes/DataHandling/Operation/Event/Exception/StopRecordOperationException.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Exception; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Exception; /** * Thrown if record operations should stop. E.g. if the operation should be deferred. diff --git a/Classes/DataHandling/Operation/Event/Handler/AbstractDetermineDeferredRecordOperation.php b/Classes/DataHandling/Operation/Event/Handler/AbstractDetermineDeferredRecordOperation.php index bb4c1ab1..2ceeecbe 100644 --- a/Classes/DataHandling/Operation/Event/Handler/AbstractDetermineDeferredRecordOperation.php +++ b/Classes/DataHandling/Operation/Event/Handler/AbstractDetermineDeferredRecordOperation.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\Exception\StopRecordOperationException; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface as EventHandlerInterface; -use Pixelant\Interest\Domain\Repository\DeferredRecordOperationRepository; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Exception\StopRecordOperationException; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface as EventHandlerInterface; +use FriendsOfTYPO3\Interest\Domain\Repository\DeferredRecordOperationRepository; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; use TYPO3\CMS\Core\Utility\GeneralUtility; /** diff --git a/Classes/DataHandling/Operation/Event/Handler/AddResolvedPendingRelationsToDataHandler.php b/Classes/DataHandling/Operation/Event/Handler/AddResolvedPendingRelationsToDataHandler.php index 8f11430c..9b573c4c 100644 --- a/Classes/DataHandling/Operation/Event/Handler/AddResolvedPendingRelationsToDataHandler.php +++ b/Classes/DataHandling/Operation/Event/Handler/AddResolvedPendingRelationsToDataHandler.php @@ -2,13 +2,13 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; -use Pixelant\Interest\Domain\Repository\PendingRelationsRepository; -use Pixelant\Interest\Utility\RelationUtility; +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\Domain\Repository\PendingRelationsRepository; +use FriendsOfTYPO3\Interest\Utility\RelationUtility; use TYPO3\CMS\Core\Utility\GeneralUtility; /** diff --git a/Classes/DataHandling/Operation/Event/Handler/ApplyFieldDataTransformations.php b/Classes/DataHandling/Operation/Event/Handler/ApplyFieldDataTransformations.php index c2cff319..15f7ed1e 100644 --- a/Classes/DataHandling/Operation/Event/Handler/ApplyFieldDataTransformations.php +++ b/Classes/DataHandling/Operation/Event/Handler/ApplyFieldDataTransformations.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; /** * Simply sets the language in the ContentObjectRenderer's data array. diff --git a/Classes/DataHandling/Operation/Event/Handler/ConvertRelationFieldArraysToCsv.php b/Classes/DataHandling/Operation/Event/Handler/ConvertRelationFieldArraysToCsv.php index 48e27dd6..eae7c40e 100644 --- a/Classes/DataHandling/Operation/Event/Handler/ConvertRelationFieldArraysToCsv.php +++ b/Classes/DataHandling/Operation/Event/Handler/ConvertRelationFieldArraysToCsv.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; -use Pixelant\Interest\Utility\RelationUtility; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\Utility\RelationUtility; /** * Converts relation field values from array to comma-separated string. diff --git a/Classes/DataHandling/Operation/Event/Handler/DeferIfPidDoesNotYetExist.php b/Classes/DataHandling/Operation/Event/Handler/DeferIfPidDoesNotYetExist.php index 261547e6..d7fd6b39 100644 --- a/Classes/DataHandling/Operation/Event/Handler/DeferIfPidDoesNotYetExist.php +++ b/Classes/DataHandling/Operation/Event/Handler/DeferIfPidDoesNotYetExist.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; use TYPO3\CMS\Core\Utility\GeneralUtility; /** diff --git a/Classes/DataHandling/Operation/Event/Handler/DeferSysFileReference.php b/Classes/DataHandling/Operation/Event/Handler/DeferSysFileReference.php index 55306371..cb2de882 100644 --- a/Classes/DataHandling/Operation/Event/Handler/DeferSysFileReference.php +++ b/Classes/DataHandling/Operation/Event/Handler/DeferSysFileReference.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; /** * Defers a sys_file_reference operation if the local file has not yet been created. diff --git a/Classes/DataHandling/Operation/Event/Handler/FixSortingPositionsOnRemoteRelationRecords.php b/Classes/DataHandling/Operation/Event/Handler/FixSortingPositionsOnRemoteRelationRecords.php index 01cb9193..a066f3b5 100644 --- a/Classes/DataHandling/Operation/Event/Handler/FixSortingPositionsOnRemoteRelationRecords.php +++ b/Classes/DataHandling/Operation/Event/Handler/FixSortingPositionsOnRemoteRelationRecords.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; - -use Pixelant\Interest\DataHandling\DataHandler; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; -use Pixelant\Interest\DataHandling\Operation\Exception\DataHandlerErrorException; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; -use Pixelant\Interest\Utility\DatabaseUtility; -use Pixelant\Interest\Utility\TcaUtility; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; + +use FriendsOfTYPO3\Interest\DataHandling\DataHandler; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Exception\DataHandlerErrorException; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; +use FriendsOfTYPO3\Interest\Utility\DatabaseUtility; +use FriendsOfTYPO3\Interest\Utility\TcaUtility; use TYPO3\CMS\Core\Database\RelationHandler; use TYPO3\CMS\Core\Utility\ArrayUtility; use TYPO3\CMS\Core\Utility\GeneralUtility; diff --git a/Classes/DataHandling/Operation/Event/Handler/GenerateRecordOperationHash.php b/Classes/DataHandling/Operation/Event/Handler/GenerateRecordOperationHash.php index aec961fd..b09e1975 100644 --- a/Classes/DataHandling/Operation/Event/Handler/GenerateRecordOperationHash.php +++ b/Classes/DataHandling/Operation/Event/Handler/GenerateRecordOperationHash.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; /** * Sets the uniqueness hash of the record operation. E.g. used to stop if repeating an operation. diff --git a/Classes/DataHandling/Operation/Event/Handler/InsertTranslationFields.php b/Classes/DataHandling/Operation/Event/Handler/InsertTranslationFields.php index f4d73e67..3f9a55b4 100644 --- a/Classes/DataHandling/Operation/Event/Handler/InsertTranslationFields.php +++ b/Classes/DataHandling/Operation/Event/Handler/InsertTranslationFields.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; -use Pixelant\Interest\Utility\TcaUtility; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; +use FriendsOfTYPO3\Interest\Utility\TcaUtility; use TYPO3\CMS\Core\Utility\GeneralUtility; /** diff --git a/Classes/DataHandling/Operation/Event/Handler/MapNewUidToRemoteId.php b/Classes/DataHandling/Operation/Event/Handler/MapNewUidToRemoteId.php index fda85ce4..87387d94 100644 --- a/Classes/DataHandling/Operation/Event/Handler/MapNewUidToRemoteId.php +++ b/Classes/DataHandling/Operation/Event/Handler/MapNewUidToRemoteId.php @@ -2,13 +2,13 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; use TYPO3\CMS\Core\Utility\GeneralUtility; /** diff --git a/Classes/DataHandling/Operation/Event/Handler/MapUidsAndExtractPendingRelations.php b/Classes/DataHandling/Operation/Event/Handler/MapUidsAndExtractPendingRelations.php index 172aeca5..d6861912 100644 --- a/Classes/DataHandling/Operation/Event/Handler/MapUidsAndExtractPendingRelations.php +++ b/Classes/DataHandling/Operation/Event/Handler/MapUidsAndExtractPendingRelations.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; - -use Pixelant\Interest\DataHandling\Operation\AbstractRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\Message\PendingRelationMessage; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; -use Pixelant\Interest\Utility\TcaUtility; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; + +use FriendsOfTYPO3\Interest\DataHandling\Operation\AbstractRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\Message\PendingRelationMessage; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; +use FriendsOfTYPO3\Interest\Utility\TcaUtility; use TYPO3\CMS\Core\Utility\GeneralUtility; /** diff --git a/Classes/DataHandling/Operation/Event/Handler/Message/DataHandlerSuccessMessage.php b/Classes/DataHandling/Operation/Event/Handler/Message/DataHandlerSuccessMessage.php index 7f4a0e13..d49bfb7c 100644 --- a/Classes/DataHandling/Operation/Event/Handler/Message/DataHandlerSuccessMessage.php +++ b/Classes/DataHandling/Operation/Event/Handler/Message/DataHandlerSuccessMessage.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler\Message; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\Message; -use Pixelant\Interest\DataHandling\Operation\AbstractRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Message\ReplacesPreviousMessageInterface; +use FriendsOfTYPO3\Interest\DataHandling\Operation\AbstractRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Message\ReplacesPreviousMessageInterface; /** * A message about a failed or successful DataHandler operation. diff --git a/Classes/DataHandling/Operation/Event/Handler/Message/PendingRelationMessage.php b/Classes/DataHandling/Operation/Event/Handler/Message/PendingRelationMessage.php index a49b8155..fec28c9b 100644 --- a/Classes/DataHandling/Operation/Event/Handler/Message/PendingRelationMessage.php +++ b/Classes/DataHandling/Operation/Event/Handler/Message/PendingRelationMessage.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler\Message; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\Message; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\MapUidsAndExtractPendingRelations; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\PersistPendingRelationInformation; -use Pixelant\Interest\DataHandling\Operation\Message\RequiredMessageInterface; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\MapUidsAndExtractPendingRelations; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\PersistPendingRelationInformation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Message\RequiredMessageInterface; /** * A message concerning pending relations to be persisted. diff --git a/Classes/DataHandling/Operation/Event/Handler/Message/RelationFieldValueMessage.php b/Classes/DataHandling/Operation/Event/Handler/Message/RelationFieldValueMessage.php index 1f493ca2..4563ea32 100644 --- a/Classes/DataHandling/Operation/Event/Handler/Message/RelationFieldValueMessage.php +++ b/Classes/DataHandling/Operation/Event/Handler/Message/RelationFieldValueMessage.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler\Message; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\Message; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\RegisterValuesOfRelationFields; -use Pixelant\Interest\DataHandling\Operation\Message\RequiredMessageInterface; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\RegisterValuesOfRelationFields; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Message\RequiredMessageInterface; /** * The value of a foreign relation field. diff --git a/Classes/DataHandling/Operation/Event/Handler/PersistFileData.php b/Classes/DataHandling/Operation/Event/Handler/PersistFileData.php index c7d211ba..9fe2b14f 100644 --- a/Classes/DataHandling/Operation/Event/Handler/PersistFileData.php +++ b/Classes/DataHandling/Operation/Event/Handler/PersistFileData.php @@ -2,19 +2,19 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; - +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; + +use FriendsOfTYPO3\Interest\Configuration\ConfigurationProvider; +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Exception\StopRecordOperationException; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Exception\IdentityConflictException; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Exception\InvalidArgumentException; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Exception\NotFoundException; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; use GuzzleHttp\Exception\ClientException; -use Pixelant\Interest\Configuration\ConfigurationProvider; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\Exception\StopRecordOperationException; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; -use Pixelant\Interest\DataHandling\Operation\Exception\IdentityConflictException; -use Pixelant\Interest\DataHandling\Operation\Exception\InvalidArgumentException; -use Pixelant\Interest\DataHandling\Operation\Exception\NotFoundException; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; use TYPO3\CMS\Core\Configuration\ExtensionConfiguration; use TYPO3\CMS\Core\Http\RequestFactory; use TYPO3\CMS\Core\Resource\Enum\DuplicationBehavior; diff --git a/Classes/DataHandling/Operation/Event/Handler/PersistPendingRelationInformation.php b/Classes/DataHandling/Operation/Event/Handler/PersistPendingRelationInformation.php index da019d50..9924764a 100644 --- a/Classes/DataHandling/Operation/Event/Handler/PersistPendingRelationInformation.php +++ b/Classes/DataHandling/Operation/Event/Handler/PersistPendingRelationInformation.php @@ -2,13 +2,13 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\Message\PendingRelationMessage; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; -use Pixelant\Interest\Domain\Repository\PendingRelationsRepository; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\Message\PendingRelationMessage; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\Domain\Repository\PendingRelationsRepository; use TYPO3\CMS\Core\Utility\GeneralUtility; /** diff --git a/Classes/DataHandling/Operation/Event/Handler/ProcessCmdmap.php b/Classes/DataHandling/Operation/Event/Handler/ProcessCmdmap.php index d620c66a..f602d0c5 100644 --- a/Classes/DataHandling/Operation/Event/Handler/ProcessCmdmap.php +++ b/Classes/DataHandling/Operation/Event/Handler/ProcessCmdmap.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\Message\DataHandlerSuccessMessage; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\Message\DataHandlerSuccessMessage; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; /** * Instructs DataHandler to process the cmdmap array. diff --git a/Classes/DataHandling/Operation/Event/Handler/ProcessDatamap.php b/Classes/DataHandling/Operation/Event/Handler/ProcessDatamap.php index b3a24ff2..e3cf57ff 100644 --- a/Classes/DataHandling/Operation/Event/Handler/ProcessDatamap.php +++ b/Classes/DataHandling/Operation/Event/Handler/ProcessDatamap.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\Message\DataHandlerSuccessMessage; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\Message\DataHandlerSuccessMessage; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; /** * Instructs DataHandler to process the datamap array. diff --git a/Classes/DataHandling/Operation/Event/Handler/ProcessDeferredRecordOperations.php b/Classes/DataHandling/Operation/Event/Handler/ProcessDeferredRecordOperations.php index 40845f34..137ac9bd 100644 --- a/Classes/DataHandling/Operation/Event/Handler/ProcessDeferredRecordOperations.php +++ b/Classes/DataHandling/Operation/Event/Handler/ProcessDeferredRecordOperations.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\DataHandling\Operation\AbstractConstructiveRecordOperation; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\Exception\BeforeRecordOperationEventException; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; -use Pixelant\Interest\DataHandling\Operation\Exception\IdentityConflictException; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; -use Pixelant\Interest\Domain\Repository\DeferredRecordOperationRepository; +use FriendsOfTYPO3\Interest\DataHandling\Operation\AbstractConstructiveRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Exception\BeforeRecordOperationEventException; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Exception\IdentityConflictException; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; +use FriendsOfTYPO3\Interest\Domain\Repository\DeferredRecordOperationRepository; use TYPO3\CMS\Core\Utility\GeneralUtility; class ProcessDeferredRecordOperations implements RecordOperationEventHandlerInterface diff --git a/Classes/DataHandling/Operation/Event/Handler/ProcessUpdatedForeignFieldValues.php b/Classes/DataHandling/Operation/Event/Handler/ProcessUpdatedForeignFieldValues.php index f4790691..b00830e8 100644 --- a/Classes/DataHandling/Operation/Event/Handler/ProcessUpdatedForeignFieldValues.php +++ b/Classes/DataHandling/Operation/Event/Handler/ProcessUpdatedForeignFieldValues.php @@ -2,13 +2,13 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\Message\RelationFieldValueMessage; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; -use Pixelant\Interest\Utility\RelationUtility; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\Message\RelationFieldValueMessage; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; +use FriendsOfTYPO3\Interest\Utility\RelationUtility; use TYPO3\CMS\Core\Utility\GeneralUtility; /** diff --git a/Classes/DataHandling/Operation/Event/Handler/RegisterValuesOfRelationFields.php b/Classes/DataHandling/Operation/Event/Handler/RegisterValuesOfRelationFields.php index 6e23f2d6..2bfe22bc 100644 --- a/Classes/DataHandling/Operation/Event/Handler/RegisterValuesOfRelationFields.php +++ b/Classes/DataHandling/Operation/Event/Handler/RegisterValuesOfRelationFields.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\DataHandling\Operation\AbstractRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\Message\RelationFieldValueMessage; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; -use Pixelant\Interest\Utility\TcaUtility; +use FriendsOfTYPO3\Interest\DataHandling\Operation\AbstractRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\Message\RelationFieldValueMessage; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; +use FriendsOfTYPO3\Interest\Utility\TcaUtility; /** * Check datamap fields keeping foreign relations and send a RelationFieldValueMessage for each. After process_datamap diff --git a/Classes/DataHandling/Operation/Event/Handler/RelationSortingAsMetaData.php b/Classes/DataHandling/Operation/Event/Handler/RelationSortingAsMetaData.php index cd9bfaad..ef7f5687 100644 --- a/Classes/DataHandling/Operation/Event/Handler/RelationSortingAsMetaData.php +++ b/Classes/DataHandling/Operation/Event/Handler/RelationSortingAsMetaData.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; - -use Pixelant\Interest\DataHandling\Operation\AbstractRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; -use Pixelant\Interest\Utility\TcaUtility; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; + +use FriendsOfTYPO3\Interest\DataHandling\Operation\AbstractRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; +use FriendsOfTYPO3\Interest\Utility\TcaUtility; use TYPO3\CMS\Core\Utility\GeneralUtility; /** diff --git a/Classes/DataHandling/Operation/Event/Handler/RemoveEmptyValuesFromRelationFieldArrays.php b/Classes/DataHandling/Operation/Event/Handler/RemoveEmptyValuesFromRelationFieldArrays.php index b43fb368..65a58b06 100644 --- a/Classes/DataHandling/Operation/Event/Handler/RemoveEmptyValuesFromRelationFieldArrays.php +++ b/Classes/DataHandling/Operation/Event/Handler/RemoveEmptyValuesFromRelationFieldArrays.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; /** * Removes empty values from relation arrays. diff --git a/Classes/DataHandling/Operation/Event/Handler/RemoveFieldsWithNullValue.php b/Classes/DataHandling/Operation/Event/Handler/RemoveFieldsWithNullValue.php index f1b73a03..f48747e2 100644 --- a/Classes/DataHandling/Operation/Event/Handler/RemoveFieldsWithNullValue.php +++ b/Classes/DataHandling/Operation/Event/Handler/RemoveFieldsWithNullValue.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; /** * Unsets fields with null value, so they don't create problems. diff --git a/Classes/DataHandling/Operation/Event/Handler/RemovePendingRelationsForCreatedRecord.php b/Classes/DataHandling/Operation/Event/Handler/RemovePendingRelationsForCreatedRecord.php index 2f94a103..e25d1b21 100644 --- a/Classes/DataHandling/Operation/Event/Handler/RemovePendingRelationsForCreatedRecord.php +++ b/Classes/DataHandling/Operation/Event/Handler/RemovePendingRelationsForCreatedRecord.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; -use Pixelant\Interest\Domain\Repository\PendingRelationsRepository; +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\Domain\Repository\PendingRelationsRepository; use TYPO3\CMS\Core\Utility\GeneralUtility; /** diff --git a/Classes/DataHandling/Operation/Event/Handler/RemovePendingRelationsForDeletedRecord.php b/Classes/DataHandling/Operation/Event/Handler/RemovePendingRelationsForDeletedRecord.php index 640b8646..db9b0a7c 100644 --- a/Classes/DataHandling/Operation/Event/Handler/RemovePendingRelationsForDeletedRecord.php +++ b/Classes/DataHandling/Operation/Event/Handler/RemovePendingRelationsForDeletedRecord.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; -use Pixelant\Interest\Domain\Repository\PendingRelationsRepository; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\Domain\Repository\PendingRelationsRepository; use TYPO3\CMS\Core\Utility\GeneralUtility; /** diff --git a/Classes/DataHandling/Operation/Event/Handler/ResolveStoragePid.php b/Classes/DataHandling/Operation/Event/Handler/ResolveStoragePid.php index a6780d5b..a351662a 100644 --- a/Classes/DataHandling/Operation/Event/Handler/ResolveStoragePid.php +++ b/Classes/DataHandling/Operation/Event/Handler/ResolveStoragePid.php @@ -2,13 +2,13 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; -use Pixelant\Interest\DataHandling\Operation\Exception\InvalidArgumentException; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Exception\InvalidArgumentException; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Utility\MathUtility; diff --git a/Classes/DataHandling/Operation/Event/Handler/SanitizeFieldValues.php b/Classes/DataHandling/Operation/Event/Handler/SanitizeFieldValues.php index c950d01d..9b65defb 100644 --- a/Classes/DataHandling/Operation/Event/Handler/SanitizeFieldValues.php +++ b/Classes/DataHandling/Operation/Event/Handler/SanitizeFieldValues.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\DataHandling\Operation\AbstractRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; -use Pixelant\Interest\DataHandling\Operation\Exception\InvalidArgumentException; -use Pixelant\Interest\Utility\TcaUtility; +use FriendsOfTYPO3\Interest\DataHandling\Operation\AbstractRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Exception\InvalidArgumentException; +use FriendsOfTYPO3\Interest\Utility\TcaUtility; use TYPO3\CMS\Core\Utility\GeneralUtility; /** diff --git a/Classes/DataHandling/Operation/Event/Handler/SetContentObjectRendererLanguage.php b/Classes/DataHandling/Operation/Event/Handler/SetContentObjectRendererLanguage.php index 20ec0ede..67522aa3 100644 --- a/Classes/DataHandling/Operation/Event/Handler/SetContentObjectRendererLanguage.php +++ b/Classes/DataHandling/Operation/Event/Handler/SetContentObjectRendererLanguage.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; -use Pixelant\Interest\DataHandling\Operation\Exception\InvalidArgumentException; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Exception\InvalidArgumentException; /** * Sets the language in the ContentObjectRenderer's data array. diff --git a/Classes/DataHandling/Operation/Event/Handler/SetPid.php b/Classes/DataHandling/Operation/Event/Handler/SetPid.php index 60e95e10..54579f14 100644 --- a/Classes/DataHandling/Operation/Event/Handler/SetPid.php +++ b/Classes/DataHandling/Operation/Event/Handler/SetPid.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; /** * Sets the 'pid' key in the data array from the storage PID, if necessary. diff --git a/Classes/DataHandling/Operation/Event/Handler/SetUid.php b/Classes/DataHandling/Operation/Event/Handler/SetUid.php index 76c54259..602132b2 100644 --- a/Classes/DataHandling/Operation/Event/Handler/SetUid.php +++ b/Classes/DataHandling/Operation/Event/Handler/SetUid.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; /** * Sets the UID in the operation if it was successful. diff --git a/Classes/DataHandling/Operation/Event/Handler/StopIfRepeatingPreviousRecordOperation.php b/Classes/DataHandling/Operation/Event/Handler/StopIfRepeatingPreviousRecordOperation.php index 3bb0a768..7ff2eb04 100644 --- a/Classes/DataHandling/Operation/Event/Handler/StopIfRepeatingPreviousRecordOperation.php +++ b/Classes/DataHandling/Operation/Event/Handler/StopIfRepeatingPreviousRecordOperation.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\Exception\StopRecordOperationException; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Exception\StopRecordOperationException; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; use TYPO3\CMS\Core\Utility\GeneralUtility; class StopIfRepeatingPreviousRecordOperation implements RecordOperationEventHandlerInterface diff --git a/Classes/DataHandling/Operation/Event/Handler/UpdateCountOnForeignSideOfInlineRecord.php b/Classes/DataHandling/Operation/Event/Handler/UpdateCountOnForeignSideOfInlineRecord.php index 4f388878..9faa3d17 100644 --- a/Classes/DataHandling/Operation/Event/Handler/UpdateCountOnForeignSideOfInlineRecord.php +++ b/Classes/DataHandling/Operation/Event/Handler/UpdateCountOnForeignSideOfInlineRecord.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; -use Pixelant\Interest\Utility\RelationUtility; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\Utility\RelationUtility; /** * Updates the inline relation record count stored in the parent record field before we delete one of the relations. diff --git a/Classes/DataHandling/Operation/Event/Handler/ValidateFieldNames.php b/Classes/DataHandling/Operation/Event/Handler/ValidateFieldNames.php index ea628a97..1d15090c 100644 --- a/Classes/DataHandling/Operation/Event/Handler/ValidateFieldNames.php +++ b/Classes/DataHandling/Operation/Event/Handler/ValidateFieldNames.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; -use Pixelant\Interest\DataHandling\Operation\Exception\ConflictException; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AbstractRecordOperationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Exception\ConflictException; /** * Attempts to resolve the storage PID. diff --git a/Classes/DataHandling/Operation/Event/RecordOperationEventHandlerInterface.php b/Classes/DataHandling/Operation/Event/RecordOperationEventHandlerInterface.php index bd50e5f1..42458a0a 100644 --- a/Classes/DataHandling/Operation/Event/RecordOperationEventHandlerInterface.php +++ b/Classes/DataHandling/Operation/Event/RecordOperationEventHandlerInterface.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event; interface RecordOperationEventHandlerInterface { diff --git a/Classes/DataHandling/Operation/Event/RecordOperationInvocationEvent.php b/Classes/DataHandling/Operation/Event/RecordOperationInvocationEvent.php index 05e64734..4bc9ccd1 100644 --- a/Classes/DataHandling/Operation/Event/RecordOperationInvocationEvent.php +++ b/Classes/DataHandling/Operation/Event/RecordOperationInvocationEvent.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event; /** * Event called after the completion of an AbstractRecordOperation. diff --git a/Classes/DataHandling/Operation/Event/RecordOperationSetupEvent.php b/Classes/DataHandling/Operation/Event/RecordOperationSetupEvent.php index ddaf5316..d961bd8d 100644 --- a/Classes/DataHandling/Operation/Event/RecordOperationSetupEvent.php +++ b/Classes/DataHandling/Operation/Event/RecordOperationSetupEvent.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Event; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event; /** * An event that is called at the very beginning of the initialization of an AbstractRecordOperation object. While the diff --git a/Classes/DataHandling/Operation/Exception/AbstractException.php b/Classes/DataHandling/Operation/Exception/AbstractException.php index 34798f7b..f4c94a48 100644 --- a/Classes/DataHandling/Operation/Exception/AbstractException.php +++ b/Classes/DataHandling/Operation/Exception/AbstractException.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Exception; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Exception; /** * An abstract exception for data handling operations. diff --git a/Classes/DataHandling/Operation/Exception/ConflictException.php b/Classes/DataHandling/Operation/Exception/ConflictException.php index 6929a49f..3c9a9271 100644 --- a/Classes/DataHandling/Operation/Exception/ConflictException.php +++ b/Classes/DataHandling/Operation/Exception/ConflictException.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Exception; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Exception; class ConflictException extends AbstractException { diff --git a/Classes/DataHandling/Operation/Exception/DataHandlerErrorException.php b/Classes/DataHandling/Operation/Exception/DataHandlerErrorException.php index 69d109b1..2c070ec2 100644 --- a/Classes/DataHandling/Operation/Exception/DataHandlerErrorException.php +++ b/Classes/DataHandling/Operation/Exception/DataHandlerErrorException.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Exception; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Exception; /** * Thrown if the data handler has errors. diff --git a/Classes/DataHandling/Operation/Exception/IdentityConflictException.php b/Classes/DataHandling/Operation/Exception/IdentityConflictException.php index 6375e137..0b617fc7 100644 --- a/Classes/DataHandling/Operation/Exception/IdentityConflictException.php +++ b/Classes/DataHandling/Operation/Exception/IdentityConflictException.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Exception; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Exception; /** * Thrown if the remote ID already exists. diff --git a/Classes/DataHandling/Operation/Exception/IncompleteOperationException.php b/Classes/DataHandling/Operation/Exception/IncompleteOperationException.php index e2509734..007227fc 100644 --- a/Classes/DataHandling/Operation/Exception/IncompleteOperationException.php +++ b/Classes/DataHandling/Operation/Exception/IncompleteOperationException.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Exception; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Exception; /** * Thrown if the data handler has errors. diff --git a/Classes/DataHandling/Operation/Exception/InvalidArgumentException.php b/Classes/DataHandling/Operation/Exception/InvalidArgumentException.php index e79a2733..6c9b4733 100644 --- a/Classes/DataHandling/Operation/Exception/InvalidArgumentException.php +++ b/Classes/DataHandling/Operation/Exception/InvalidArgumentException.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Exception; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Exception; class InvalidArgumentException extends AbstractException { diff --git a/Classes/DataHandling/Operation/Exception/MissingArgumentException.php b/Classes/DataHandling/Operation/Exception/MissingArgumentException.php index 69a06d51..a56d6bbd 100644 --- a/Classes/DataHandling/Operation/Exception/MissingArgumentException.php +++ b/Classes/DataHandling/Operation/Exception/MissingArgumentException.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Exception; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Exception; /** * An exception thrown if an argument is missing or invalid when expected to be present. diff --git a/Classes/DataHandling/Operation/Exception/NotFoundException.php b/Classes/DataHandling/Operation/Exception/NotFoundException.php index 9651f3b6..cac8f2de 100644 --- a/Classes/DataHandling/Operation/Exception/NotFoundException.php +++ b/Classes/DataHandling/Operation/Exception/NotFoundException.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Exception; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Exception; /** * Exception thrown if a remote ID or corresponding record can't be found locally. diff --git a/Classes/DataHandling/Operation/Message/MessageInterface.php b/Classes/DataHandling/Operation/Message/MessageInterface.php index 72a5c3d1..10b5d455 100644 --- a/Classes/DataHandling/Operation/Message/MessageInterface.php +++ b/Classes/DataHandling/Operation/Message/MessageInterface.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Message; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Message; /** * Interface for internal messages between objects within a record operation's scope. For example transfer of data from diff --git a/Classes/DataHandling/Operation/Message/ReplacesPreviousMessageInterface.php b/Classes/DataHandling/Operation/Message/ReplacesPreviousMessageInterface.php index 32068333..deb4e407 100644 --- a/Classes/DataHandling/Operation/Message/ReplacesPreviousMessageInterface.php +++ b/Classes/DataHandling/Operation/Message/ReplacesPreviousMessageInterface.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Message; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Message; /** * Indicates that there should only be a zero or one message of each class with this interface in the queue at any given diff --git a/Classes/DataHandling/Operation/Message/RequiredMessageInterface.php b/Classes/DataHandling/Operation/Message/RequiredMessageInterface.php index c6632d0b..9ed0b6ae 100644 --- a/Classes/DataHandling/Operation/Message/RequiredMessageInterface.php +++ b/Classes/DataHandling/Operation/Message/RequiredMessageInterface.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation\Message; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Message; /** * A message that must be retrieved. If left in the queue when the record operation completes, the record operation diff --git a/Classes/DataHandling/Operation/UpdateRecordOperation.php b/Classes/DataHandling/Operation/UpdateRecordOperation.php index 397b5669..ab760ab3 100644 --- a/Classes/DataHandling/Operation/UpdateRecordOperation.php +++ b/Classes/DataHandling/Operation/UpdateRecordOperation.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Pixelant\Interest\DataHandling\Operation; +namespace FriendsOfTYPO3\Interest\DataHandling\Operation; -use Pixelant\Interest\DataHandling\Operation\Exception\NotFoundException; -use Pixelant\Interest\Domain\Model\Dto\RecordRepresentation; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Exception\NotFoundException; +use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordRepresentation; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; use TYPO3\CMS\Core\Utility\GeneralUtility; /** diff --git a/Classes/Database/RelationHandlerWithoutReferenceIndex.php b/Classes/Database/RelationHandlerWithoutReferenceIndex.php index 43b6b29b..22d72f7d 100644 --- a/Classes/Database/RelationHandlerWithoutReferenceIndex.php +++ b/Classes/Database/RelationHandlerWithoutReferenceIndex.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\Database; +namespace FriendsOfTYPO3\Interest\Database; use TYPO3\CMS\Core\Database\RelationHandler; diff --git a/Classes/Domain/Model/Dto/Exception/AbstractException.php b/Classes/Domain/Model/Dto/Exception/AbstractException.php index 11a3e1f6..59890f7a 100644 --- a/Classes/Domain/Model/Dto/Exception/AbstractException.php +++ b/Classes/Domain/Model/Dto/Exception/AbstractException.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\Domain\Model\Dto\Exception; +namespace FriendsOfTYPO3\Interest\Domain\Model\Dto\Exception; /** * An abstract exception for dto operations. diff --git a/Classes/Domain/Model/Dto/Exception/InvalidArgumentException.php b/Classes/Domain/Model/Dto/Exception/InvalidArgumentException.php index 0a3ea610..f0a92f3f 100644 --- a/Classes/Domain/Model/Dto/Exception/InvalidArgumentException.php +++ b/Classes/Domain/Model/Dto/Exception/InvalidArgumentException.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\Domain\Model\Dto\Exception; +namespace FriendsOfTYPO3\Interest\Domain\Model\Dto\Exception; class InvalidArgumentException extends AbstractException { diff --git a/Classes/Domain/Model/Dto/RecordInstanceIdentifier.php b/Classes/Domain/Model/Dto/RecordInstanceIdentifier.php index 5b972649..ea938dd8 100644 Binary files a/Classes/Domain/Model/Dto/RecordInstanceIdentifier.php and b/Classes/Domain/Model/Dto/RecordInstanceIdentifier.php differ diff --git a/Classes/Domain/Model/Dto/RecordRepresentation.php b/Classes/Domain/Model/Dto/RecordRepresentation.php index f0ca4064..15c602bb 100644 Binary files a/Classes/Domain/Model/Dto/RecordRepresentation.php and b/Classes/Domain/Model/Dto/RecordRepresentation.php differ diff --git a/Classes/Domain/Repository/AbstractRepository.php b/Classes/Domain/Repository/AbstractRepository.php index b998386b..760a0800 100644 --- a/Classes/Domain/Repository/AbstractRepository.php +++ b/Classes/Domain/Repository/AbstractRepository.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\Domain\Repository; +namespace FriendsOfTYPO3\Interest\Domain\Repository; use TYPO3\CMS\Core\Database\ConnectionPool; use TYPO3\CMS\Core\Database\Query\QueryBuilder; diff --git a/Classes/Domain/Repository/DeferredRecordOperationRepository.php b/Classes/Domain/Repository/DeferredRecordOperationRepository.php index c6c6ec9e..b194e301 100644 --- a/Classes/Domain/Repository/DeferredRecordOperationRepository.php +++ b/Classes/Domain/Repository/DeferredRecordOperationRepository.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Pixelant\Interest\Domain\Repository; +namespace FriendsOfTYPO3\Interest\Domain\Repository; use Doctrine\DBAL\Result; -use Pixelant\Interest\DataHandling\Operation\AbstractRecordOperation; -use Pixelant\Interest\Domain\Repository\Exception\InvalidQueryResultException; +use FriendsOfTYPO3\Interest\DataHandling\Operation\AbstractRecordOperation; +use FriendsOfTYPO3\Interest\Domain\Repository\Exception\InvalidQueryResultException; use TYPO3\CMS\Core\Database\Connection; class DeferredRecordOperationRepository extends AbstractRepository @@ -36,8 +36,6 @@ public function add(string $dependentRemoteId, AbstractRecordOperation $operatio /** * Get all deferred operations waiting for $dependentRemoteId. * - * @param string $dependentRemoteId - * @return array * @throws InvalidQueryResultException */ public function get(string $dependentRemoteId): array @@ -73,11 +71,6 @@ public function get(string $dependentRemoteId): array $row['_hash'] = md5($row['dependent_remote_id'] . $row['class'] . $row['arguments']); $row['arguments'] = unserialize($row['arguments']); - - if (!is_array($row['arguments'])) { - // Compatibility with v1. Remove in v3. - $row['arguments'] = [$row['arguments']]; - } } return $rows; diff --git a/Classes/Domain/Repository/Exception/InvalidQueryResultException.php b/Classes/Domain/Repository/Exception/InvalidQueryResultException.php index 82fd1410..0c216c84 100644 --- a/Classes/Domain/Repository/Exception/InvalidQueryResultException.php +++ b/Classes/Domain/Repository/Exception/InvalidQueryResultException.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\Domain\Repository\Exception; +namespace FriendsOfTYPO3\Interest\Domain\Repository\Exception; class InvalidQueryResultException extends \Exception { diff --git a/Classes/Domain/Repository/PendingRelationsRepository.php b/Classes/Domain/Repository/PendingRelationsRepository.php index ef4dbfaf..0492169d 100644 --- a/Classes/Domain/Repository/PendingRelationsRepository.php +++ b/Classes/Domain/Repository/PendingRelationsRepository.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Pixelant\Interest\Domain\Repository; +namespace FriendsOfTYPO3\Interest\Domain\Repository; use Doctrine\DBAL\Result; -use Pixelant\Interest\Domain\Repository\Exception\InvalidQueryResultException; +use FriendsOfTYPO3\Interest\Domain\Repository\Exception\InvalidQueryResultException; use TYPO3\CMS\Core\Database\Connection; /** diff --git a/Classes/Domain/Repository/RemoteIdMappingRepository.php b/Classes/Domain/Repository/RemoteIdMappingRepository.php index 477beaac..bcb64222 100644 --- a/Classes/Domain/Repository/RemoteIdMappingRepository.php +++ b/Classes/Domain/Repository/RemoteIdMappingRepository.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Pixelant\Interest\Domain\Repository; +namespace FriendsOfTYPO3\Interest\Domain\Repository; use Doctrine\DBAL\Result; -use Pixelant\Interest\DataHandling\Operation\AbstractRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Exception\IdentityConflictException; -use Pixelant\Interest\Domain\Repository\Exception\InvalidQueryResultException; -use Pixelant\Interest\Utility\DatabaseUtility; -use Pixelant\Interest\Utility\TcaUtility; +use FriendsOfTYPO3\Interest\DataHandling\Operation\AbstractRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Exception\IdentityConflictException; +use FriendsOfTYPO3\Interest\Domain\Repository\Exception\InvalidQueryResultException; +use FriendsOfTYPO3\Interest\Utility\DatabaseUtility; +use FriendsOfTYPO3\Interest\Utility\TcaUtility; use TYPO3\CMS\Core\Database\Connection; /** diff --git a/Classes/Domain/Repository/TokenRepository.php b/Classes/Domain/Repository/TokenRepository.php index 4f587f12..61a2433e 100644 --- a/Classes/Domain/Repository/TokenRepository.php +++ b/Classes/Domain/Repository/TokenRepository.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Pixelant\Interest\Domain\Repository; +namespace FriendsOfTYPO3\Interest\Domain\Repository; use Doctrine\DBAL\Result; -use Pixelant\Interest\Domain\Repository\Exception\InvalidQueryResultException; +use FriendsOfTYPO3\Interest\Domain\Repository\Exception\InvalidQueryResultException; use TYPO3\CMS\Core\Configuration\ExtensionConfiguration; use TYPO3\CMS\Core\Crypto\Random; use TYPO3\CMS\Core\Utility\GeneralUtility; diff --git a/Classes/EventHandler/DeleteRemoteIdForDeletedFile.php b/Classes/EventHandler/DeleteRemoteIdForDeletedFile.php index ac6da0a2..ef1c5222 100644 --- a/Classes/EventHandler/DeleteRemoteIdForDeletedFile.php +++ b/Classes/EventHandler/DeleteRemoteIdForDeletedFile.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace Pixelant\Interest\EventHandler; +namespace FriendsOfTYPO3\Interest\EventHandler; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; use TYPO3\CMS\Core\Resource\Event\AfterFileDeletedEvent; use TYPO3\CMS\Core\Resource\File; use TYPO3\CMS\Core\Resource\FileInterface; diff --git a/Classes/Hook/ProcessCmdmap.php b/Classes/Hook/ProcessCmdmap.php index 56738155..96dbbd8b 100644 --- a/Classes/Hook/ProcessCmdmap.php +++ b/Classes/Hook/ProcessCmdmap.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace Pixelant\Interest\Hook; +namespace FriendsOfTYPO3\Interest\Hook; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; use TYPO3\CMS\Core\DataHandling\DataHandler; use TYPO3\CMS\Core\Utility\GeneralUtility; diff --git a/Classes/Middleware/Event/HttpResponseEvent.php b/Classes/Middleware/Event/HttpResponseEvent.php index cdf2f7d4..51fedd54 100644 --- a/Classes/Middleware/Event/HttpResponseEvent.php +++ b/Classes/Middleware/Event/HttpResponseEvent.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\Middleware\Event; +namespace FriendsOfTYPO3\Interest\Middleware\Event; use Psr\Http\Message\ResponseInterface; diff --git a/Classes/Middleware/Event/HttpResponseEventHandlerInterface.php b/Classes/Middleware/Event/HttpResponseEventHandlerInterface.php index 6557d83c..27d4aa67 100644 --- a/Classes/Middleware/Event/HttpResponseEventHandlerInterface.php +++ b/Classes/Middleware/Event/HttpResponseEventHandlerInterface.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\Middleware\Event; +namespace FriendsOfTYPO3\Interest\Middleware\Event; interface HttpResponseEventHandlerInterface { diff --git a/Classes/Middleware/RequestMiddleware.php b/Classes/Middleware/RequestMiddleware.php index 78c9357d..dc58d6da 100644 --- a/Classes/Middleware/RequestMiddleware.php +++ b/Classes/Middleware/RequestMiddleware.php @@ -1,10 +1,10 @@ ConflictException::class, - OperationDataHandlerErrorException::class => DataHandlerErrorException::class, - OperationIdentityConflictException::class => ConflictException::class, - OpIncompleteOperationException::class => IncompleteOperationException::class, - OperationInvalidArgumentException::class => InvalidArgumentException::class, - OperationNotFoundException::class => NotFoundException::class, - OperationMissingArgumentException::class => MissingArgumentException::class, + OpConflictException::class => ConflictException::class, + OpDataHandlerErrorException::class => DataHandlerErrorException::class, + OpIdentityConflictException::class => ConflictException::class, + OpIncompleteOpException::class => IncompleteOperationException::class, + OpInvalidArgumentException::class => InvalidArgumentException::class, + OpNotFoundException::class => NotFoundException::class, + OpMissingArgumentException::class => MissingArgumentException::class, ]; /** diff --git a/Classes/RequestHandler/UpdateRequestHandler.php b/Classes/RequestHandler/UpdateRequestHandler.php index c50d8b4f..532f53ea 100644 --- a/Classes/RequestHandler/UpdateRequestHandler.php +++ b/Classes/RequestHandler/UpdateRequestHandler.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Pixelant\Interest\RequestHandler; +namespace FriendsOfTYPO3\Interest\RequestHandler; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; -use Pixelant\Interest\Domain\Model\Dto\RecordRepresentation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; +use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordRepresentation; class UpdateRequestHandler extends AbstractRecordRequestHandler { diff --git a/Classes/Router/Event/HttpRequestRouterHandleByEvent.php b/Classes/Router/Event/HttpRequestRouterHandleByEvent.php index c40574a6..0632fff6 100644 --- a/Classes/Router/Event/HttpRequestRouterHandleByEvent.php +++ b/Classes/Router/Event/HttpRequestRouterHandleByEvent.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\Router\Event; +namespace FriendsOfTYPO3\Interest\Router\Event; use Psr\Http\Message\ServerRequestInterface; diff --git a/Classes/Router/Event/HttpRequestRouterHandleByEventHandlerInterface.php b/Classes/Router/Event/HttpRequestRouterHandleByEventHandlerInterface.php index 0cff3978..ca9fe071 100644 --- a/Classes/Router/Event/HttpRequestRouterHandleByEventHandlerInterface.php +++ b/Classes/Router/Event/HttpRequestRouterHandleByEventHandlerInterface.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\Router\Event; +namespace FriendsOfTYPO3\Interest\Router\Event; interface HttpRequestRouterHandleByEventHandlerInterface { diff --git a/Classes/Router/HttpRequestRouter.php b/Classes/Router/HttpRequestRouter.php index d822b3e9..4db4a8fe 100644 --- a/Classes/Router/HttpRequestRouter.php +++ b/Classes/Router/HttpRequestRouter.php @@ -2,18 +2,18 @@ declare(strict_types=1); -namespace Pixelant\Interest\Router; - -use Pixelant\Interest\Authentication\HttpBackendUserAuthentication; -use Pixelant\Interest\DataHandling\Operation\Exception\AbstractException; -use Pixelant\Interest\RequestHandler\AuthenticateRequestHandler; -use Pixelant\Interest\RequestHandler\CreateOrUpdateRequestHandler; -use Pixelant\Interest\RequestHandler\CreateRequestHandler; -use Pixelant\Interest\RequestHandler\DeleteRequestHandler; -use Pixelant\Interest\RequestHandler\Exception\AbstractRequestHandlerException; -use Pixelant\Interest\RequestHandler\ExceptionConverter\OperationToRequestHandlerExceptionConverter; -use Pixelant\Interest\RequestHandler\UpdateRequestHandler; -use Pixelant\Interest\Router\Event\HttpRequestRouterHandleByEvent; +namespace FriendsOfTYPO3\Interest\Router; + +use FriendsOfTYPO3\Interest\Authentication\HttpBackendUserAuthentication; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Exception\AbstractException; +use FriendsOfTYPO3\Interest\RequestHandler\AuthenticateRequestHandler; +use FriendsOfTYPO3\Interest\RequestHandler\CreateOrUpdateRequestHandler; +use FriendsOfTYPO3\Interest\RequestHandler\CreateRequestHandler; +use FriendsOfTYPO3\Interest\RequestHandler\DeleteRequestHandler; +use FriendsOfTYPO3\Interest\RequestHandler\Exception\AbstractRequestHandlerException; +use FriendsOfTYPO3\Interest\RequestHandler\ExceptionConverter\OperationToRequestHandlerExceptionConverter; +use FriendsOfTYPO3\Interest\RequestHandler\UpdateRequestHandler; +use FriendsOfTYPO3\Interest\Router\Event\HttpRequestRouterHandleByEvent; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use TYPO3\CMS\Core\Configuration\ExtensionConfiguration; diff --git a/Classes/Slot/DeleteRemoteIdForDeletedFileSlot.php b/Classes/Slot/DeleteRemoteIdForDeletedFileSlot.php index fdfcf5b9..35080135 100644 --- a/Classes/Slot/DeleteRemoteIdForDeletedFileSlot.php +++ b/Classes/Slot/DeleteRemoteIdForDeletedFileSlot.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace Pixelant\Interest\Slot; +namespace FriendsOfTYPO3\Interest\Slot; -use Pixelant\Interest\EventHandler\DeleteRemoteIdForDeletedFile; +use FriendsOfTYPO3\Interest\EventHandler\DeleteRemoteIdForDeletedFile; use TYPO3\CMS\Core\Resource\AbstractFile; /** diff --git a/Classes/Updates/AbstractUpdateWizard.php b/Classes/Updates/AbstractUpdateWizard.php index fdfc4f85..f14edd56 100644 --- a/Classes/Updates/AbstractUpdateWizard.php +++ b/Classes/Updates/AbstractUpdateWizard.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pixelant\Interest\Updates; +namespace FriendsOfTYPO3\Interest\Updates; use TYPO3\CMS\Core\Database\ConnectionPool; use TYPO3\CMS\Core\Database\Query\QueryBuilder; diff --git a/Classes/Updates/ReNamespaceDeferredOperationsUpdateWizard.php b/Classes/Updates/ReNamespaceDeferredOperationsUpdateWizard.php new file mode 100644 index 00000000..26343c4c --- /dev/null +++ b/Classes/Updates/ReNamespaceDeferredOperationsUpdateWizard.php @@ -0,0 +1,107 @@ +output = $output; + } + + /** + * @inheritDoc + */ + public function executeUpdate(): bool + { + $queryBuilder = $this->getQueryBuilderForTable(DeferredRecordOperationRepository::TABLE_NAME); + + $result = $queryBuilder + ->select('*') + ->from(DeferredRecordOperationRepository::TABLE_NAME) + ->executeQuery(); + + class_alias( + RecordRepresentation::class, + 'Pixelant\\Interest\\Domain\\Model\\Dto\\RecordRepresentation' + ); + + class_alias( + RecordInstanceIdentifier::class, + 'Pixelant\\Interest\\Domain\\Model\\Dto\\RecordInstanceIdentifier' + ); + + $recordCount = 0; + + foreach ($result->iterateAssociative() as $row) { + $recordCount++; + $updatedRow = []; + + // Using @unserialize here to catch deprecation errors. + // phpcs:ignore + $updatedRow['arguments'] = serialize(@unserialize($row['arguments'])); + + $updatedRow['class'] = str_replace('Pixelant\\Interest\\', 'FriendsOfTYPO3\\Interest\\', $row['class']); + + $updateQuery = $this->getQueryBuilderForTable(DeferredRecordOperationRepository::TABLE_NAME); + + $updateQuery + ->update(DeferredRecordOperationRepository::TABLE_NAME) + ->from(DeferredRecordOperationRepository::TABLE_NAME) + ->where($updateQuery->expr()->eq('uid', $updateQuery->createNamedParameter($row['uid']))); + + foreach ($updatedRow as $key => $value) { + $updateQuery->set($key, $value); + } + + $updateQuery->executeStatement(); + } + + $this->output->writeln('Updated ' . $recordCount . ' deferred operations.'); + + return true; + } + + /** + * @inheritDoc + */ + public function updateNecessary(): bool + { + $queryBuilder = $this->getQueryBuilderForTable(DeferredRecordOperationRepository::TABLE_NAME); + + return (bool)$queryBuilder + ->count('*') + ->from(DeferredRecordOperationRepository::TABLE_NAME) + ->executeQuery() + ->fetchOne(); + } + + /** + * @inheritDoc + */ + public function getPrerequisites(): array + { + return []; + } +} diff --git a/Classes/Updates/RemovePendingRelationsWithEmptyRemoteIdUpdateWizard.php b/Classes/Updates/RemovePendingRelationsWithEmptyRemoteIdUpdateWizard.php index 7c48ce7a..a3b7b080 100644 --- a/Classes/Updates/RemovePendingRelationsWithEmptyRemoteIdUpdateWizard.php +++ b/Classes/Updates/RemovePendingRelationsWithEmptyRemoteIdUpdateWizard.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace Pixelant\Interest\Updates; +namespace FriendsOfTYPO3\Interest\Updates; -use Pixelant\Interest\Domain\Repository\PendingRelationsRepository; +use FriendsOfTYPO3\Interest\Domain\Repository\PendingRelationsRepository; use Symfony\Component\Console\Output\OutputInterface; use TYPO3\CMS\Install\Attribute\UpgradeWizard; use TYPO3\CMS\Install\Updates\ChattyInterface; diff --git a/Classes/Utility/DatabaseUtility.php b/Classes/Utility/DatabaseUtility.php index 820eeae4..609a3411 100644 --- a/Classes/Utility/DatabaseUtility.php +++ b/Classes/Utility/DatabaseUtility.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Pixelant\Interest\Utility; +namespace FriendsOfTYPO3\Interest\Utility; use Doctrine\DBAL\Result; -use Pixelant\Interest\Domain\Repository\Exception\InvalidQueryResultException; +use FriendsOfTYPO3\Interest\Domain\Repository\Exception\InvalidQueryResultException; use TYPO3\CMS\Core\Database\ConnectionPool; use TYPO3\CMS\Core\Database\Query\QueryBuilder; use TYPO3\CMS\Core\Database\Query\Restriction\DeletedRestriction; diff --git a/Classes/Utility/RelationUtility.php b/Classes/Utility/RelationUtility.php index bf7b3b30..76b20fcf 100644 --- a/Classes/Utility/RelationUtility.php +++ b/Classes/Utility/RelationUtility.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Pixelant\Interest\Utility; +namespace FriendsOfTYPO3\Interest\Utility; -use Pixelant\Interest\DataHandling\DataHandler; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\UpdateCountOnForeignSideOfInlineRecordEventHandler; +use FriendsOfTYPO3\Interest\DataHandling\DataHandler; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\UpdateCountOnForeignSideOfInlineRecordEventHandler; use TYPO3\CMS\Core\Database\RelationHandler; use TYPO3\CMS\Core\Utility\GeneralUtility; diff --git a/Classes/Utility/TcaUtility.php b/Classes/Utility/TcaUtility.php index 500d6d06..309e10ea 100644 --- a/Classes/Utility/TcaUtility.php +++ b/Classes/Utility/TcaUtility.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace Pixelant\Interest\Utility; +namespace FriendsOfTYPO3\Interest\Utility; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; use TYPO3\CMS\Backend\Utility\BackendUtility; use TYPO3\CMS\Core\Cache\CacheManager; use TYPO3\CMS\Core\Utility\ArrayUtility; diff --git a/Configuration/RequestMiddlewares.php b/Configuration/RequestMiddlewares.php index 3fe3e37a..25c392a9 100644 --- a/Configuration/RequestMiddlewares.php +++ b/Configuration/RequestMiddlewares.php @@ -1,6 +1,6 @@ [ diff --git a/Configuration/Services.yaml b/Configuration/Services.yaml index e697a2df..e2f09f09 100644 --- a/Configuration/Services.yaml +++ b/Configuration/Services.yaml @@ -4,256 +4,256 @@ services: autoconfigure: true public: false - Pixelant\Interest\: + FriendsOfTYPO3\Interest\: resource: '../Classes/*' - Pixelant\Interest\DataHandling\Operation\Event\Handler\InsertTranslationFields: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\InsertTranslationFields: tags: - name: event.listener identifier: insertTranslationFields - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent before: resolveStoragePid - Pixelant\Interest\DataHandling\Operation\Event\Handler\ResolveStoragePid: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\ResolveStoragePid: tags: - name: event.listener identifier: resolveStoragePid - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent before: generateRecordOperationHash - Pixelant\Interest\DataHandling\Operation\Event\Handler\GenerateRecordOperationHash: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\GenerateRecordOperationHash: tags: - name: event.listener identifier: generateRecordOperationHash - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent before: stopIfRepeatingPreviousRecord - Pixelant\Interest\DataHandling\Operation\Event\Handler\StopIfRepeatingPreviousRecordOperation: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\StopIfRepeatingPreviousRecordOperation: tags: - name: event.listener identifier: stopIfRepeatingPreviousRecord - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent before: persistFileData - Pixelant\Interest\DataHandling\Operation\Event\Handler\PersistFileData: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\PersistFileData: tags: - name: event.listener identifier: persistFileData - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent before: deferSysFileReferenceRecordOperation - Pixelant\Interest\DataHandling\Operation\Event\Handler\DeferSysFileReference: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\DeferSysFileReference: tags: - name: event.listener identifier: deferSysFileReferenceRecordOperation - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent before: relationSortingAsMetaData - Pixelant\Interest\DataHandling\Operation\Event\Handler\RelationSortingAsMetaData: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\RelationSortingAsMetaData: tags: - name: event.listener identifier: relationSortingAsMetaData - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent before: validateFieldNames - Pixelant\Interest\DataHandling\Operation\Event\Handler\ValidateFieldNames: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\ValidateFieldNames: tags: - name: event.listener identifier: validateFieldNames - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent before: setContentObjectRendererLanguage - Pixelant\Interest\DataHandling\Operation\Event\Handler\SetContentObjectRendererLanguage: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\SetContentObjectRendererLanguage: tags: - name: event.listener identifier: setContentObjectRendererLanguage - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent before: applyFieldDataTransformations - Pixelant\Interest\DataHandling\Operation\Event\Handler\ApplyFieldDataTransformations: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\ApplyFieldDataTransformations: tags: - name: event.listener identifier: applyFieldDataTransformations - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent before: sanitizeFieldValues - Pixelant\Interest\DataHandling\Operation\Event\Handler\SanitizeFieldValues: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\SanitizeFieldValues: tags: - name: event.listener identifier: sanitizeFieldValues - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent before: deferIfPidDoesNotYetExist - Pixelant\Interest\DataHandling\Operation\Event\Handler\DeferIfPidDoesNotYetExist: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\DeferIfPidDoesNotYetExist: tags: - name: event.listener identifier: deferIfPidDoesNotYetExist - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent before: mapUidsAndExtractPendingRelations - Pixelant\Interest\DataHandling\Operation\Event\Handler\MapUidsAndExtractPendingRelations: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\MapUidsAndExtractPendingRelations: tags: - name: event.listener identifier: mapUidsAndExtractPendingRelations - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent before: removeFieldsWithNullValue - Pixelant\Interest\DataHandling\Operation\Event\Handler\RemoveFieldsWithNullValue: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\RemoveFieldsWithNullValue: tags: - name: event.listener identifier: removeFieldsWithNullValue - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent before: removeEmptyValuesFromRelationFieldArrays - Pixelant\Interest\DataHandling\Operation\Event\Handler\RemoveEmptyValuesFromRelationFieldArrays: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\RemoveEmptyValuesFromRelationFieldArrays: tags: - name: event.listener identifier: removeEmptyValuesFromRelationFieldArrays - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent before: convertRelationFieldArraysToCsv - Pixelant\Interest\DataHandling\Operation\Event\Handler\ConvertRelationFieldArraysToCsv: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\ConvertRelationFieldArraysToCsv: tags: - name: event.listener identifier: convertRelationFieldArraysToCsv - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent before: setPid - Pixelant\Interest\DataHandling\Operation\Event\Handler\SetPid: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\SetPid: tags: - name: event.listener identifier: setPid - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent after: convertRelationFieldArraysToCsv - Pixelant\Interest\DataHandling\Operation\Event\Handler\RegisterValuesOfRelationFields: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\RegisterValuesOfRelationFields: tags: - name: event.listener identifier: registerValuesOfRelationFields - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent before: addResolvedPendingRelationsToDataHandler - Pixelant\Interest\DataHandling\Operation\Event\Handler\AddResolvedPendingRelationsToDataHandler: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\AddResolvedPendingRelationsToDataHandler: tags: - name: event.listener identifier: addResolvedPendingRelationsToDataHandler - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent before: processDatamap - Pixelant\Interest\DataHandling\Operation\Event\Handler\ProcessDatamap: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\ProcessDatamap: tags: - name: event.listener identifier: processDatamap - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent before: processUpdatedForeignFieldValues - Pixelant\Interest\DataHandling\Operation\Event\Handler\ProcessUpdatedForeignFieldValues: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\ProcessUpdatedForeignFieldValues: tags: - name: event.listener identifier: processUpdatedForeignFieldValues - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent before: processCmdmap - Pixelant\Interest\DataHandling\Operation\Event\Handler\ProcessCmdmap: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\ProcessCmdmap: tags: - name: event.listener identifier: processCmdmap - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent before: setUid - Pixelant\Interest\DataHandling\Operation\Event\Handler\SetUid: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\SetUid: tags: - name: event.listener identifier: setUid - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent before: mapNewUidToRemoteId - Pixelant\Interest\DataHandling\Operation\Event\Handler\MapNewUidToRemoteId: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\MapNewUidToRemoteId: tags: - name: event.listener identifier: mapNewUidToRemoteId - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent before: persistPendingRelationInformation - Pixelant\Interest\DataHandling\Operation\Event\Handler\PersistPendingRelationInformation: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\PersistPendingRelationInformation: tags: - name: event.listener identifier: persistPendingRelationInformation - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent before: processDeferredRecordOperations - Pixelant\Interest\DataHandling\Operation\Event\Handler\ProcessDeferredRecordOperations: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\ProcessDeferredRecordOperations: tags: - name: event.listener identifier: processDeferredRecordOperations - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent before: updateCountOnForeignSideOfInlineRecord - Pixelant\Interest\DataHandling\Operation\Event\Handler\UpdateCountOnForeignSideOfInlineRecord: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\UpdateCountOnForeignSideOfInlineRecord: tags: - name: event.listener identifier: updateCountOnForeignSideOfInlineRecord - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent before: cleanUpPendingRelations - Pixelant\Interest\DataHandling\Operation\Event\Handler\FixSortingPositionsOnRemoteRelationRecords: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\FixSortingPositionsOnRemoteRelationRecords: tags: - name: event.listener identifier: fixSortingPositionsOnRemoteRelationRecords - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent before: cleanUpPendingRelations - Pixelant\Interest\DataHandling\Operation\Event\Handler\RemovePendingRelationsForCreatedRecord: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\RemovePendingRelationsForCreatedRecord: tags: - name: event.listener identifier: removePendingRelationsForCreatedRecord - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent after: fixSortingPositionsOnRemoteRelationRecords - Pixelant\Interest\DataHandling\Operation\Event\Handler\RemovePendingRelationsForDeletedRecord: + FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\RemovePendingRelationsForDeletedRecord: tags: - name: event.listener identifier: removePendingRelationsForDeletedRecord - event: Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent + event: FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent after: foreignRelationSorting - Pixelant\Interest\EventHandler\DeleteRemoteIdForDeletedFile: + FriendsOfTYPO3\Interest\EventHandler\DeleteRemoteIdForDeletedFile: tags: - name: event.listener identifier: deleteRemoteIdForDeletedFile event: TYPO3\CMS\Core\Resource\Event\AfterFileDeletedEvent - Pixelant\Interest\Command\CreateCommandController: + FriendsOfTYPO3\Interest\Command\CreateCommandController: tags: - name: console.command command: 'interest:create' schedulable: false - Pixelant\Interest\Command\DeleteCommandController: + FriendsOfTYPO3\Interest\Command\DeleteCommandController: tags: - name: console.command command: 'interest:delete' schedulable: false - Pixelant\Interest\Command\UpdateCommandController: + FriendsOfTYPO3\Interest\Command\UpdateCommandController: tags: - name: console.command command: 'interest:update' schedulable: false - Pixelant\Interest\Command\ReadCommandController: + FriendsOfTYPO3\Interest\Command\ReadCommandController: tags: - name: console.command command: 'interest:read' schedulable: false - Pixelant\Interest\Command\PendingRelationsCommandController: + FriendsOfTYPO3\Interest\Command\PendingRelationsCommandController: tags: - name: console.command command: 'interest:pendingrelations' schedulable: false - Pixelant\Interest\Command\ClearRecordHashCommandController: + FriendsOfTYPO3\Interest\Command\ClearRecordHashCommandController: tags: - name: console.command command: 'interest:clearhash' diff --git a/Configuration/TCA/Overrides/sys_reaction.php b/Configuration/TCA/Overrides/sys_reaction.php index fefb87db..2b260422 100644 --- a/Configuration/TCA/Overrides/sys_reaction.php +++ b/Configuration/TCA/Overrides/sys_reaction.php @@ -7,20 +7,20 @@ 'sys_reaction', 'reaction_type', [ - 'label' => \Pixelant\Interest\Reaction\CreateUpdateDeleteReaction::getDescription(), - 'value' => \Pixelant\Interest\Reaction\CreateUpdateDeleteReaction::getType(), - 'icon' => \Pixelant\Interest\Reaction\CreateUpdateDeleteReaction::getIconIdentifier(), + 'label' => \FriendsOfTYPO3\Interest\Reaction\CreateUpdateDeleteReaction::getDescription(), + 'value' => \FriendsOfTYPO3\Interest\Reaction\CreateUpdateDeleteReaction::getType(), + 'icon' => \FriendsOfTYPO3\Interest\Reaction\CreateUpdateDeleteReaction::getIconIdentifier(), ] ); - $GLOBALS['TCA']['sys_reaction']['ctrl']['typeicon_classes'][\Pixelant\Interest\Reaction\CreateUpdateDeleteReaction::getType()] = \Pixelant\Interest\Reaction\CreateUpdateDeleteReaction::getIconIdentifier(); + $GLOBALS['TCA']['sys_reaction']['ctrl']['typeicon_classes'][\FriendsOfTYPO3\Interest\Reaction\CreateUpdateDeleteReaction::getType()] = \FriendsOfTYPO3\Interest\Reaction\CreateUpdateDeleteReaction::getIconIdentifier(); $GLOBALS['TCA']['sys_reaction']['palettes']['interestCreateUpdateDelete'] = [ 'label' => 'LLL:EXT:reactions/Resources/Private/Language/locallang_db.xlf:palette.additional', 'showitem' => 'impersonate_user', ]; - $GLOBALS['TCA']['sys_reaction']['types'][\Pixelant\Interest\Reaction\CreateUpdateDeleteReaction::getType()] = [ + $GLOBALS['TCA']['sys_reaction']['types'][\FriendsOfTYPO3\Interest\Reaction\CreateUpdateDeleteReaction::getType()] = [ 'showitem' => ' --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general, --palette--;;config, diff --git a/Documentation/Configuration/Extension/Index.rst b/Documentation/Configuration/Extension/Index.rst index e31869f3..58103702 100644 --- a/Documentation/Configuration/Extension/Index.rst +++ b/Documentation/Configuration/Extension/Index.rst @@ -64,9 +64,9 @@ Behavior **0** Treat as any other file. You can also use this option if you want to handle empty files with a custom - :php:`Pixelant\Interest\DataHandling\Operation\Event\BeforeRecordOperationEvent`. + :php:`FriendsOfTYPO3\Interest\DataHandling\Operation\Event\BeforeRecordOperationEvent`. Just make sure your EventHandler it is executed after - :php:`\Pixelant\Interest\DataHandling\Operation\Event\Handler\PersistFileDataEventHandler`. + :php:`\FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\PersistFileDataEventHandler`. **1** Stop processing the record. This might result in pending relation records that will never be resolved in the database, but if that's OK for you it diff --git a/Documentation/Implementing/Extending/Index.rst b/Documentation/Implementing/Extending/Index.rst index 7a21ef86..e19764f4 100644 --- a/Documentation/Implementing/Extending/Index.rst +++ b/Documentation/Implementing/Extending/Index.rst @@ -20,13 +20,13 @@ Events The events are listed in order of execution. -.. php:namespace:: Pixelant\Interest\Router\Event +.. php:namespace:: FriendsOfTYPO3\Interest\Router\Event .. php:class:: HttpRequestRouterHandleByEvent Called in :php:`HttpRequestRouter::handleByMethod()`. Can be used to modify the request and entry point parts before they are passed on to a RequestHandler. - EventHandlers for this event should implement :php:`Pixelant\Interest\Router\Event\HttpRequestRouterHandleByEventHandlerInterface`. + EventHandlers for this event should implement :php:`FriendsOfTYPO3\Interest\Router\Event\HttpRequestRouterHandleByEventHandlerInterface`. .. php:method:: getEntryPointParts() @@ -46,45 +46,45 @@ The events are listed in order of execution. :param Psr\Http\Message\ServerRequestInterface $request: -.. php:namespace:: Pixelant\Interest\DataHandling\Operation\Event +.. php:namespace:: FriendsOfTYPO3\Interest\DataHandling\Operation\Event .. php:class:: RecordOperationSetupEvent Called inside the :php:`AbstractRecordOperation::__construct()` when a :php:`*RecordOperation` object has been initialized, but before data validations. - EventHandlers for this event should implement :php:`Pixelant\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface`. + EventHandlers for this event should implement :php:`FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationEventHandlerInterface`. EventHandlers for this event can throw these exceptions: - :php:`Pixelant\Interest\DataHandling\Operation\Event\Exception\StopRecordOperationException` + :php:`FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Exception\StopRecordOperationException` To quietly stop the record operation. This exception is only logged as informational and the operation will be treated as successful. E.g. used when deferring an operation. - :php:`Pixelant\Interest\DataHandling\Operation\Event\Exception\BeforeRecordOperationEventException` + :php:`FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Exception\BeforeRecordOperationEventException` Will stop the record operation and log as an error. The operation will be treated as unsuccessful. .. php:method:: getRecordOperation() - :returntype: Pixelant\Interest\DataHandling\Operation\AbstractRecordOperation + :returntype: FriendsOfTYPO3\Interest\DataHandling\Operation\AbstractRecordOperation -.. php:namespace:: Pixelant\Interest\DataHandling\Operation\Event +.. php:namespace:: FriendsOfTYPO3\Interest\DataHandling\Operation\Event .. php:class:: RecordOperationInvocationEvent Called as the last thing inside the :php:`AbstractRecordOperation::__invoke()` method, after all data persistence and pending relations have been resolved. - EventHandlers for this event should implement :php:`Pixelant\Interest\DataHandling\Operation\Event\AfterRecordOperationEventHandlerInterface`. + EventHandlers for this event should implement :php:`FriendsOfTYPO3\Interest\DataHandling\Operation\Event\AfterRecordOperationEventHandlerInterface`. .. php:method:: getRecordOperation() - :returntype: Pixelant\Interest\DataHandling\Operation\AbstractRecordOperation + :returntype: FriendsOfTYPO3\Interest\DataHandling\Operation\AbstractRecordOperation -.. php:namespace:: Pixelant\Interest\Middleware\Event +.. php:namespace:: FriendsOfTYPO3\Interest\Middleware\Event .. php:class:: HttpResponseEvent Called in the middleware, just before control is handled back over to TYPO3 during an HTTP request. Allows modification of the response object. - EventHandlers for this event should implement :php:`Pixelant\Interest\Middleware\Event\HttpResponseEventHandlerInterface`. + EventHandlers for this event should implement :php:`FriendsOfTYPO3\Interest\Middleware\Event\HttpResponseEventHandlerInterface`. .. php:method:: getResponse() @@ -106,15 +106,15 @@ Internal representation and identity Inside the extension, a record's state and identity is maintained by two data transfer object classes: -* **A record's unique identity** from creation to deletion is represented by :php:`Pixelant\Interest\Domain\Model\Dto\RecordInstanceIdentifier`. -* **A record's current state**, including the data that should be written to the database is represented by :php:`Pixelant\Interest\Domain\Model\Dto\RecordRepresentation`. +* **A record's unique identity** from creation to deletion is represented by :php:`FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordInstanceIdentifier`. +* **A record's current state**, including the data that should be written to the database is represented by :php:`FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordRepresentation`. When creating a :php:`RecordRepresentation`, you must also supply a :php:`RecordInstanceIdentifier`: .. code-block:: - use Pixelant\Interest\Domain\Model\Dto\RecordInstanceIdentifier; - use Pixelant\Interest\Domain\Model\Dto\RecordRepresentation; + use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordInstanceIdentifier; + use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordRepresentation; new RecordRepresentation( [ @@ -152,23 +152,23 @@ There are three record operations: * Update * Delete -All are subclasses of :php:`Pixelant\Interest\DataHandling\Operation\AbstractRecordOperation`, and share its API. :php:`CreateRecordOperation` and :php:`CreateRecordOperation` are direct subclasses of :php:`AbstractConstructiveRecordOperation`, which adds a more complex constructor. +All are subclasses of :php:`FriendsOfTYPO3\Interest\DataHandling\Operation\AbstractRecordOperation`, and share its API. :php:`CreateRecordOperation` and :php:`CreateRecordOperation` are direct subclasses of :php:`AbstractConstructiveRecordOperation`, which adds a more complex constructor. -.. php:namespace:: Pixelant\Interest\DataHandling\Operation +.. php:namespace:: FriendsOfTYPO3\Interest\DataHandling\Operation .. php:class:: AbstractConstructiveRecordOperation -.. php:currentnamespace:: Pixelant\Interest\DataHandling\Operation +.. php:currentnamespace:: FriendsOfTYPO3\Interest\DataHandling\Operation .. php:class:: CreateRecordOperation -.. php:currentnamespace:: Pixelant\Interest\DataHandling\Operation +.. php:currentnamespace:: FriendsOfTYPO3\Interest\DataHandling\Operation .. php:class:: UpdateRecordOperation .. php:method:: __construct($recordRepresentation, $metaData) - :param Pixelant\Interest\Domain\Model\Dto\RecordRepresentation $recordRepresentation: + :param FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordRepresentation $recordRepresentation: :param array $metaData: @@ -191,7 +191,7 @@ All are subclasses of :php:`Pixelant\Interest\DataHandling\Operation\AbstractRec .. php:method:: dispatchMessage($message) - :param \Pixelant\Interest\DataHandling\Operation\Message\MessageInterface $message: + :param \FriendsOfTYPO3\Interest\DataHandling\Operation\Message\MessageInterface $message: Dispatch a message, to be picked up later, in another part of the operation's execution flow. @@ -215,7 +215,7 @@ All are subclasses of :php:`Pixelant\Interest\DataHandling\Operation\AbstractRec Returns the internal DataHandler object used in the operation. - :returntype: \Pixelant\Interest\DataHandling\DataHandler + :returntype: \FriendsOfTYPO3\Interest\DataHandling\DataHandler .. php:method:: getHash() @@ -249,11 +249,11 @@ All are subclasses of :php:`Pixelant\Interest\DataHandling\Operation\AbstractRec .. php:method:: getRecordRepresentation() - :returntype: Pixelant\Interest\Domain\Model\Dto\RecordRepresentation + :returntype: FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordRepresentation .. php:method:: getStoragePid() - Gets the PID of the record as originally set during object construction, usually by the :php:`\Pixelant\Interest\DataHandling\Operation\Event\Handler\ResolveStoragePid` event. + Gets the PID of the record as originally set during object construction, usually by the :php:`\FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\ResolveStoragePid` event. :returntype: void @@ -301,7 +301,7 @@ All are subclasses of :php:`Pixelant\Interest\DataHandling\Operation\AbstractRec Pick the last message of class :php:`$messageFqcn` from the message queue. Returns null if no messages are left in the queue. - :returntype: \Pixelant\Interest\DataHandling\Operation\Message\MessageInterface|null + :returntype: \FriendsOfTYPO3\Interest\DataHandling\Operation\Message\MessageInterface|null .. php:method:: setDataFieldForDataHandler($fieldName, $value) @@ -337,7 +337,7 @@ All are subclasses of :php:`Pixelant\Interest\DataHandling\Operation\AbstractRec :param int $storagePid: - Sets the storage PID. This might override a PID set by the :php:`\Pixelant\Interest\DataHandling\Operation\Event\Handler\ResolveStoragePid` event, which usually handles this task. + Sets the storage PID. This might override a PID set by the :php:`\FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\ResolveStoragePid` event, which usually handles this task. :returntype: void @@ -365,7 +365,7 @@ All are subclasses of :php:`Pixelant\Interest\DataHandling\Operation\AbstractRec :returntype: void -.. php:currentnamespace:: Pixelant\Interest\DataHandling\Operation +.. php:currentnamespace:: FriendsOfTYPO3\Interest\DataHandling\Operation .. php:class:: DeleteRecordOperation @@ -373,18 +373,18 @@ All are subclasses of :php:`Pixelant\Interest\DataHandling\Operation\AbstractRec You cannot send metadata information to a delete operation. - :param Pixelant\Interest\Domain\Model\Dto\RecordRepresentation $recordRepresentation: + :param FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordRepresentation $recordRepresentation: .. _extending-record-operation-messages: Record Operation Messages ~~~~~~~~~~~~~~~~~~~~~~~~~ -Classes implementing :php:`\Pixelant\Interest\DataHandling\Operation\Message\MessageInterface` can be used to carry information within the execution flow of an instance of :php:`\Pixelant\Interest\DataHandling\Operation\AbstractRecordOperation`. This is especially useful between EventHandlers. +Classes implementing :php:`\FriendsOfTYPO3\Interest\DataHandling\Operation\Message\MessageInterface` can be used to carry information within the execution flow of an instance of :php:`\FriendsOfTYPO3\Interest\DataHandling\Operation\AbstractRecordOperation`. This is especially useful between EventHandlers. -For example, :php:`\Pixelant\Interest\DataHandling\Operation\Event\Handler\Message\PendingRelationMessage` is used to carry information about pending relations between the event that discovers them and the event that persists the information to the database — if the record operation was successful. +For example, :php:`\FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\Message\PendingRelationMessage` is used to carry information about pending relations between the event that discovers them and the event that persists the information to the database — if the record operation was successful. -Sending a message in :php:`\Pixelant\Interest\DataHandling\Operation\Event\Handler\MapUidsAndExtractPendingRelations`: +Sending a message in :php:`\FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\MapUidsAndExtractPendingRelations`: .. code-block: php @@ -398,7 +398,7 @@ Sending a message in :php:`\Pixelant\Interest\DataHandling\Operation\Event\Handl ); } -Retrieving messages and using the message data to persist the information to the database in :php:`\Pixelant\Interest\DataHandling\Operation\Event\Handler\PersistPendingRelationInformation`: +Retrieving messages and using the message data to persist the information to the database in :php:`\FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\PersistPendingRelationInformation`: .. code-block: php @@ -441,7 +441,7 @@ The time the record was last touched can help you verify that a request was proc Relevant methods ^^^^^^^^^^^^^^^^ -.. php:namespace:: Pixelant\Interest\Domain\Repository +.. php:namespace:: FriendsOfTYPO3\Interest\Domain\Repository .. php:class:: RemoteIdMappingRepository @@ -488,10 +488,10 @@ Fetching all remote IDs that have not been touched since the same time yesterday .. code-block:: php - use Pixelant\Interest\Domain\Model\Dto\RecordInstanceIdentifier; - use Pixelant\Interest\Domain\Model\Dto\RecordRepresentation; - use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; - use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; + use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordInstanceIdentifier; + use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordRepresentation; + use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; + use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; use TYPO3\CMS\Core\Utility\GeneralUtility; $mappingRepository = GeneralUtility::makeInstance(RemoteIdMappingRepository::class); @@ -514,8 +514,8 @@ The mapping table also contains a field that can contain serialized meta informa Here's two existing use cases: -* **Foreign relation sorting order** by :php:`\Pixelant\Interest\DataHandling\Operation\Event\Handler\ForeignRelationSortingEventHandler` -* **File modification info** by :php:`\Pixelant\Interest\DataHandling\Operation\Event\Handler\PersistFileDataEventHandler` +* **Foreign relation sorting order** by :php:`\FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\ForeignRelationSortingEventHandler` +* **File modification info** by :php:`\FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\PersistFileDataEventHandler` .. warning:: @@ -530,7 +530,7 @@ Here's two existing use cases: Relevant methods ^^^^^^^^^^^^^^^^ -.. php:namespace:: Pixelant\Interest\Domain\Repository +.. php:namespace:: FriendsOfTYPO3\Interest\Domain\Repository .. php:class:: RemoteIdMappingRepository @@ -572,7 +572,7 @@ This simplified excerpt from :php:`PersistFileDataEventHandler` shows how metada .. code-block:: php use GuzzleHttp\Client; - use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; + use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; $mappingRepository = GeneralUtility::makeInstance(RemoteIdMappingRepository::class); diff --git a/Documentation/Implementing/FileHandling/Index.rst b/Documentation/Implementing/FileHandling/Index.rst index 488350cd..77f41952 100644 --- a/Documentation/Implementing/FileHandling/Index.rst +++ b/Documentation/Implementing/FileHandling/Index.rst @@ -8,7 +8,7 @@ File Handling .. note:: - File handling is managed in the EventHandler class :php:`\Pixelant\Interest\DataHandling\Operation\Event\Handler\PersistFileDataEventHandler`. + File handling is managed in the EventHandler class :php:`\FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\PersistFileDataEventHandler`. .. _implementing-files-data-source: diff --git a/Documentation/Index.rst b/Documentation/Index.rst index caa381d0..c5254536 100644 --- a/Documentation/Index.rst +++ b/Documentation/Index.rst @@ -49,7 +49,7 @@ For Contributors You are welcome to help improve this guide if you missing something. Just click on "Edit me on GitHub" on the top right to submit your change request -or `report a problem `__. +or `report a problem `__. Table of Contents ================= diff --git a/Documentation/Settings.cfg b/Documentation/Settings.cfg index b2f9029f..f241344e 100644 --- a/Documentation/Settings.cfg +++ b/Documentation/Settings.cfg @@ -21,7 +21,7 @@ copyright = 2023 by Pixelant.net # ... (recommended) to get the "Edit me on Github Button" # ................................................................................. github_branch = master -github_repository = pixelant/interest +github_repository = friendsoftypo3/interest # usually an email address project_contact = info@pixelant.net @@ -30,13 +30,13 @@ project_contact = info@pixelant.net project_discussions = # URL of webpage of your extension (if it has one) -project_home = http://github.com/pixelant/interest +project_home = http://github.com/friendsoftypo3/interest # URL to Issues -project_issues = http://github.com/pixelant/interest/issues +project_issues = http://github.com/friendsoftypo3/interest/issues # URL of repository -project_repository = http://github.com/pixelant/interest +project_repository = http://github.com/friendsoftypo3/interest [intersphinx_mapping] diff --git a/README.md b/README.md index 5c51016c..8e1a4b7c 100644 --- a/README.md +++ b/README.md @@ -6,4 +6,4 @@ remote ID mapping so you don't have to keep track of what UID a record has gotten after import. Data is inserted using backend APIs as if a real human did it, so you can can inspect the record history and undo actions. -**[Read the documentation at docs.typo3.org](https://docs.typo3.org/p/pixelant/interest/main/en-us/)** +**[Read the documentation at docs.typo3.org](https://docs.typo3.org/p/friendsoftypo3/interest/main/en-us/)** diff --git a/Tests/Functional/DataHandling/Operation/AbstractRecordOperationFunctionalTestCase.php b/Tests/Functional/DataHandling/Operation/AbstractRecordOperationFunctionalTestCase.php index 1b007106..7de46820 100644 --- a/Tests/Functional/DataHandling/Operation/AbstractRecordOperationFunctionalTestCase.php +++ b/Tests/Functional/DataHandling/Operation/AbstractRecordOperationFunctionalTestCase.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Functional\DataHandling\Operation; +namespace FriendsOfTYPO3\Interest\Tests\Functional\DataHandling\Operation; -use Pixelant\Interest\Tests\Functional\SiteBasedTestTrait; +use FriendsOfTYPO3\Interest\Tests\Functional\SiteBasedTestTrait; use TYPO3\CMS\Core\Localization\LanguageService; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase; diff --git a/Tests/Functional/DataHandling/Operation/CreateRecordOperationTest.php b/Tests/Functional/DataHandling/Operation/CreateRecordOperationTest.php index 75f84b92..f8345162 100644 --- a/Tests/Functional/DataHandling/Operation/CreateRecordOperationTest.php +++ b/Tests/Functional/DataHandling/Operation/CreateRecordOperationTest.php @@ -7,15 +7,15 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Functional\DataHandling\Operation; - +namespace FriendsOfTYPO3\Interest\Tests\Functional\DataHandling\Operation; + +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Exception\StopRecordOperationException; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Exception\InvalidArgumentException; +use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordInstanceIdentifier; +use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordRepresentation; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Exception\StopRecordOperationException; -use Pixelant\Interest\DataHandling\Operation\Exception\InvalidArgumentException; -use Pixelant\Interest\Domain\Model\Dto\RecordInstanceIdentifier; -use Pixelant\Interest\Domain\Model\Dto\RecordRepresentation; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; use TYPO3\CMS\Core\Configuration\ExtensionConfiguration; use TYPO3\CMS\Core\Resource\ResourceFactory; use TYPO3\CMS\Core\Utility\GeneralUtility; diff --git a/Tests/Functional/DataHandling/Operation/DeleteRecordOperationTest.php b/Tests/Functional/DataHandling/Operation/DeleteRecordOperationTest.php index b4562466..e8d0a571 100644 --- a/Tests/Functional/DataHandling/Operation/DeleteRecordOperationTest.php +++ b/Tests/Functional/DataHandling/Operation/DeleteRecordOperationTest.php @@ -7,13 +7,13 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Functional\DataHandling\Operation; +namespace FriendsOfTYPO3\Interest\Tests\Functional\DataHandling\Operation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordInstanceIdentifier; +use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordRepresentation; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\Domain\Model\Dto\RecordInstanceIdentifier; -use Pixelant\Interest\Domain\Model\Dto\RecordRepresentation; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; class DeleteRecordOperationTest extends AbstractRecordOperationFunctionalTestCase { diff --git a/Tests/Functional/DataHandling/Operation/UpdateRecordOperationTest.php b/Tests/Functional/DataHandling/Operation/UpdateRecordOperationTest.php index c540a914..594e1822 100644 --- a/Tests/Functional/DataHandling/Operation/UpdateRecordOperationTest.php +++ b/Tests/Functional/DataHandling/Operation/UpdateRecordOperationTest.php @@ -7,15 +7,15 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Functional\DataHandling\Operation; - +namespace FriendsOfTYPO3\Interest\Tests\Functional\DataHandling\Operation; + +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Exception\StopRecordOperationException; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; +use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordInstanceIdentifier; +use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordRepresentation; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Exception\StopRecordOperationException; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; -use Pixelant\Interest\Domain\Model\Dto\RecordInstanceIdentifier; -use Pixelant\Interest\Domain\Model\Dto\RecordRepresentation; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; class UpdateRecordOperationTest extends AbstractRecordOperationFunctionalTestCase { diff --git a/Tests/Functional/Domain/Repository/TokenRepositoryTest.php b/Tests/Functional/Domain/Repository/TokenRepositoryTest.php index 434eab03..cbba0546 100644 --- a/Tests/Functional/Domain/Repository/TokenRepositoryTest.php +++ b/Tests/Functional/Domain/Repository/TokenRepositoryTest.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Functional\Domain\Repository; +namespace FriendsOfTYPO3\Interest\Tests\Functional\Domain\Repository; +use FriendsOfTYPO3\Interest\Domain\Repository\TokenRepository; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\Domain\Repository\TokenRepository; use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase; class TokenRepositoryTest extends FunctionalTestCase diff --git a/Tests/Functional/SiteBasedTestTrait.php b/Tests/Functional/SiteBasedTestTrait.php index 6672f3b8..00a7fac7 100644 --- a/Tests/Functional/SiteBasedTestTrait.php +++ b/Tests/Functional/SiteBasedTestTrait.php @@ -15,7 +15,7 @@ * The TYPO3 project - inspiring people to share! */ -namespace Pixelant\Interest\Tests\Functional; +namespace FriendsOfTYPO3\Interest\Tests\Functional; use TYPO3\CMS\Core\Configuration\SiteConfiguration; use TYPO3\CMS\Core\Configuration\SiteWriter; diff --git a/Tests/Functional/Updates/Fixtures/DeferredOperations.csv b/Tests/Functional/Updates/Fixtures/DeferredOperations.csv new file mode 100644 index 00000000..0764bdaf Binary files /dev/null and b/Tests/Functional/Updates/Fixtures/DeferredOperations.csv differ diff --git a/Tests/Functional/Updates/ReNamespaceDeferredOperationsUpdateWizardTest.php b/Tests/Functional/Updates/ReNamespaceDeferredOperationsUpdateWizardTest.php new file mode 100644 index 00000000..81c8490f --- /dev/null +++ b/Tests/Functional/Updates/ReNamespaceDeferredOperationsUpdateWizardTest.php @@ -0,0 +1,100 @@ + ['id' => 0, 'title' => 'English', 'locale' => 'en_US.UTF-8'], + ]; + + protected array $testExtensionsToLoad = ['typo3conf/ext/interest']; + + protected function setUp(): void + { + parent::setUp(); + + $this->importCSVDataSet(__DIR__ . '/Fixtures/DeferredOperations.csv'); + + $this->writeSiteConfiguration( + 'main', + $this->buildSiteConfiguration(1, '/'), + [ + $this->buildDefaultLanguageConfiguration('en', '/'), + ] + ); + } + + #[Test] + public function deferredOperationsAreReNamespacedAndUpdatedTest() + { + $updateWizard = GeneralUtility::makeInstance(ReNamespaceDeferredOperationsUpdateWizard::class); + + $updateWizard->setOutput(new NullOutput()); + + self::assertTrue($updateWizard->updateNecessary()); + + self::assertTrue($updateWizard->executeUpdate()); + + $deferredOperationsRepository = GeneralUtility::makeInstance(DeferredRecordOperationRepository::class); + + $deferredOperations = $deferredOperationsRepository->get('dependentRemoteId'); + + foreach ($deferredOperations as $row) { + $row['class'] = 'FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation'; + + $arguments = $row['arguments']; + + self::assertTrue( + $arguments[0] instanceof RecordRepresentation, + 'Deferred operation is RecordRepresentation.' + ); + + self::assertTrue( + $arguments[0]->getRecordInstanceIdentifier() instanceof RecordInstanceIdentifier, + 'Deferred operation has RecordInstanceIdentifier.' + ); + + self::assertEquals( + [ + 'title' => 'page title', + ], + $arguments[0]->getData() + ); + + self::assertEquals( + 'pages', + $arguments[0]->getRecordInstanceIdentifier()->getTable() + ); + + self::assertEquals( + 'myRemoteId', + $arguments[0]->getRecordInstanceIdentifier()->getRemoteId() + ); + + self::assertEquals( + 'en-US', + $arguments[0]->getRecordInstanceIdentifier()->getLanguage()->getLocale()->getName() + ); + + self::assertEquals( + 0, + $arguments[0]->getRecordInstanceIdentifier()->getUid() + ); + } + } +} diff --git a/Tests/Unit/DataHandling/Operation/Event/Handler/ApplyFieldDataTransformationsTest.php b/Tests/Unit/DataHandling/Operation/Event/Handler/ApplyFieldDataTransformationsTest.php index d9a5ca75..ef69714c 100644 --- a/Tests/Unit/DataHandling/Operation/Event/Handler/ApplyFieldDataTransformationsTest.php +++ b/Tests/Unit/DataHandling/Operation/Event/Handler/ApplyFieldDataTransformationsTest.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\ApplyFieldDataTransformations; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\ApplyFieldDataTransformations; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; use TYPO3\CMS\Core\Utility\StringUtility; use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; diff --git a/Tests/Unit/DataHandling/Operation/Event/Handler/ConvertRelationFieldArraysToCsvTest.php b/Tests/Unit/DataHandling/Operation/Event/Handler/ConvertRelationFieldArraysToCsvTest.php index 9fc97579..31915c6c 100644 --- a/Tests/Unit/DataHandling/Operation/Event/Handler/ConvertRelationFieldArraysToCsvTest.php +++ b/Tests/Unit/DataHandling/Operation/Event/Handler/ConvertRelationFieldArraysToCsvTest.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; - +namespace FriendsOfTYPO3\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; + +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\ApplyFieldDataTransformations; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\ConvertRelationFieldArraysToCsv; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\ApplyFieldDataTransformations; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\ConvertRelationFieldArraysToCsv; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; use TYPO3\CMS\Core\Utility\StringUtility; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; diff --git a/Tests/Unit/DataHandling/Operation/Event/Handler/FixSortingPositionsOnRemoteRelationRecordsTest.php b/Tests/Unit/DataHandling/Operation/Event/Handler/FixSortingPositionsOnRemoteRelationRecordsTest.php index 6cb536d0..cade3dea 100644 --- a/Tests/Unit/DataHandling/Operation/Event/Handler/FixSortingPositionsOnRemoteRelationRecordsTest.php +++ b/Tests/Unit/DataHandling/Operation/Event/Handler/FixSortingPositionsOnRemoteRelationRecordsTest.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\FixSortingPositionsOnRemoteRelationRecords; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\FixSortingPositionsOnRemoteRelationRecords; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; diff --git a/Tests/Unit/DataHandling/Operation/Event/Handler/InsertTranslationFieldsTest.php b/Tests/Unit/DataHandling/Operation/Event/Handler/InsertTranslationFieldsTest.php index e5a4f051..f99698ea 100644 --- a/Tests/Unit/DataHandling/Operation/Event/Handler/InsertTranslationFieldsTest.php +++ b/Tests/Unit/DataHandling/Operation/Event/Handler/InsertTranslationFieldsTest.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; - +namespace FriendsOfTYPO3\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; + +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\InsertTranslationFields; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\InsertTranslationFields; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; use TYPO3\CMS\Core\Site\Entity\SiteLanguage; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; diff --git a/Tests/Unit/DataHandling/Operation/Event/Handler/MapNewUidToRemoteIdTest.php b/Tests/Unit/DataHandling/Operation/Event/Handler/MapNewUidToRemoteIdTest.php index 42c9c05a..e9bfdee6 100644 --- a/Tests/Unit/DataHandling/Operation/Event/Handler/MapNewUidToRemoteIdTest.php +++ b/Tests/Unit/DataHandling/Operation/Event/Handler/MapNewUidToRemoteIdTest.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; - +namespace FriendsOfTYPO3\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; + +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\MapNewUidToRemoteId; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; +use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordInstanceIdentifier; +use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordRepresentation; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\MapNewUidToRemoteId; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; -use Pixelant\Interest\Domain\Model\Dto\RecordInstanceIdentifier; -use Pixelant\Interest\Domain\Model\Dto\RecordRepresentation; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; diff --git a/Tests/Unit/DataHandling/Operation/Event/Handler/MapUidsAndExtractPendingRelationsTest.php b/Tests/Unit/DataHandling/Operation/Event/Handler/MapUidsAndExtractPendingRelationsTest.php index cfb98179..a7d40778 100644 --- a/Tests/Unit/DataHandling/Operation/Event/Handler/MapUidsAndExtractPendingRelationsTest.php +++ b/Tests/Unit/DataHandling/Operation/Event/Handler/MapUidsAndExtractPendingRelationsTest.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; - +namespace FriendsOfTYPO3\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; + +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\MapUidsAndExtractPendingRelations; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\Message\PendingRelationMessage; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\MapUidsAndExtractPendingRelations; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\Message\PendingRelationMessage; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; diff --git a/Tests/Unit/DataHandling/Operation/Event/Handler/PersistPendingRelationInformationTest.php b/Tests/Unit/DataHandling/Operation/Event/Handler/PersistPendingRelationInformationTest.php index f49423ae..9942ded1 100644 --- a/Tests/Unit/DataHandling/Operation/Event/Handler/PersistPendingRelationInformationTest.php +++ b/Tests/Unit/DataHandling/Operation/Event/Handler/PersistPendingRelationInformationTest.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; - +namespace FriendsOfTYPO3\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; + +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\Message\PendingRelationMessage; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\PersistPendingRelationInformation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; +use FriendsOfTYPO3\Interest\Domain\Repository\PendingRelationsRepository; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\Message\PendingRelationMessage; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\PersistPendingRelationInformation; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; -use Pixelant\Interest\Domain\Repository\PendingRelationsRepository; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; diff --git a/Tests/Unit/DataHandling/Operation/Event/Handler/ProcessCmdmapTest.php b/Tests/Unit/DataHandling/Operation/Event/Handler/ProcessCmdmapTest.php index 2a15c480..45e5ed48 100644 --- a/Tests/Unit/DataHandling/Operation/Event/Handler/ProcessCmdmapTest.php +++ b/Tests/Unit/DataHandling/Operation/Event/Handler/ProcessCmdmapTest.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; - +namespace FriendsOfTYPO3\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; + +use FriendsOfTYPO3\Interest\DataHandling\DataHandler; +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\Message\DataHandlerSuccessMessage; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\ProcessCmdmap; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\DataHandler; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\Message\DataHandlerSuccessMessage; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\ProcessCmdmap; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class ProcessCmdmapTest extends UnitTestCase diff --git a/Tests/Unit/DataHandling/Operation/Event/Handler/ProcessDatamapTest.php b/Tests/Unit/DataHandling/Operation/Event/Handler/ProcessDatamapTest.php index 2b215c21..452765ae 100644 --- a/Tests/Unit/DataHandling/Operation/Event/Handler/ProcessDatamapTest.php +++ b/Tests/Unit/DataHandling/Operation/Event/Handler/ProcessDatamapTest.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; - +namespace FriendsOfTYPO3\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; + +use FriendsOfTYPO3\Interest\DataHandling\DataHandler; +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\Message\DataHandlerSuccessMessage; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\ProcessDatamap; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\DataHandler; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\Message\DataHandlerSuccessMessage; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\ProcessDatamap; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class ProcessDatamapTest extends UnitTestCase diff --git a/Tests/Unit/DataHandling/Operation/Event/Handler/ProcessDeferredRecordOperationsTest.php b/Tests/Unit/DataHandling/Operation/Event/Handler/ProcessDeferredRecordOperationsTest.php index 8b58c95d..76fc36fb 100644 --- a/Tests/Unit/DataHandling/Operation/Event/Handler/ProcessDeferredRecordOperationsTest.php +++ b/Tests/Unit/DataHandling/Operation/Event/Handler/ProcessDeferredRecordOperationsTest.php @@ -2,22 +2,22 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; - +namespace FriendsOfTYPO3\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; + +use FriendsOfTYPO3\Interest\DataHandling\Operation\AbstractRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\PersistPendingRelationInformation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\ProcessDeferredRecordOperations; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Exception\IdentityConflictException; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; +use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordInstanceIdentifier; +use FriendsOfTYPO3\Interest\Domain\Model\Dto\RecordRepresentation; +use FriendsOfTYPO3\Interest\Domain\Repository\DeferredRecordOperationRepository; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\MockObject\MockObject; -use Pixelant\Interest\DataHandling\Operation\AbstractRecordOperation; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\PersistPendingRelationInformation; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\ProcessDeferredRecordOperations; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; -use Pixelant\Interest\DataHandling\Operation\Exception\IdentityConflictException; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; -use Pixelant\Interest\Domain\Model\Dto\RecordInstanceIdentifier; -use Pixelant\Interest\Domain\Model\Dto\RecordRepresentation; -use Pixelant\Interest\Domain\Repository\DeferredRecordOperationRepository; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; diff --git a/Tests/Unit/DataHandling/Operation/Event/Handler/ProcessUpdatedForeignFieldValuesTest.php b/Tests/Unit/DataHandling/Operation/Event/Handler/ProcessUpdatedForeignFieldValuesTest.php index 86b5a671..850ae055 100644 --- a/Tests/Unit/DataHandling/Operation/Event/Handler/ProcessUpdatedForeignFieldValuesTest.php +++ b/Tests/Unit/DataHandling/Operation/Event/Handler/ProcessUpdatedForeignFieldValuesTest.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; - +namespace FriendsOfTYPO3\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; + +use FriendsOfTYPO3\Interest\DataHandling\DataHandler; +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\Message\RelationFieldValueMessage; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\ProcessUpdatedForeignFieldValues; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\DataHandler; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\Message\RelationFieldValueMessage; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\ProcessUpdatedForeignFieldValues; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class ProcessUpdatedForeignFieldValuesTest extends UnitTestCase diff --git a/Tests/Unit/DataHandling/Operation/Event/Handler/RegisterValuesOfRelationFieldsTest.php b/Tests/Unit/DataHandling/Operation/Event/Handler/RegisterValuesOfRelationFieldsTest.php index 83177703..7ac33bd4 100644 --- a/Tests/Unit/DataHandling/Operation/Event/Handler/RegisterValuesOfRelationFieldsTest.php +++ b/Tests/Unit/DataHandling/Operation/Event/Handler/RegisterValuesOfRelationFieldsTest.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; - +namespace FriendsOfTYPO3\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; + +use FriendsOfTYPO3\Interest\DataHandling\DataHandler; +use FriendsOfTYPO3\Interest\DataHandling\Operation\AbstractRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\Message\RelationFieldValueMessage; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\RegisterValuesOfRelationFields; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\DataHandler; -use Pixelant\Interest\DataHandling\Operation\AbstractRecordOperation; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\Message\RelationFieldValueMessage; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\RegisterValuesOfRelationFields; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class RegisterValuesOfRelationFieldsTest extends UnitTestCase diff --git a/Tests/Unit/DataHandling/Operation/Event/Handler/RelationSortingAsMetaDataTest.php b/Tests/Unit/DataHandling/Operation/Event/Handler/RelationSortingAsMetaDataTest.php index 016d8d15..1bfdfed7 100644 --- a/Tests/Unit/DataHandling/Operation/Event/Handler/RelationSortingAsMetaDataTest.php +++ b/Tests/Unit/DataHandling/Operation/Event/Handler/RelationSortingAsMetaDataTest.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; - +namespace FriendsOfTYPO3\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; + +use FriendsOfTYPO3\Interest\DataHandling\Operation\AbstractRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\RelationSortingAsMetaData; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\Operation\AbstractRecordOperation; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\RelationSortingAsMetaData; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; diff --git a/Tests/Unit/DataHandling/Operation/Event/Handler/RemoveEmptyValuesFromRelationFieldArraysTest.php b/Tests/Unit/DataHandling/Operation/Event/Handler/RemoveEmptyValuesFromRelationFieldArraysTest.php index c2c65b53..66c937dd 100644 --- a/Tests/Unit/DataHandling/Operation/Event/Handler/RemoveEmptyValuesFromRelationFieldArraysTest.php +++ b/Tests/Unit/DataHandling/Operation/Event/Handler/RemoveEmptyValuesFromRelationFieldArraysTest.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\RemoveEmptyValuesFromRelationFieldArrays; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\RemoveEmptyValuesFromRelationFieldArrays; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class RemoveEmptyValuesFromRelationFieldArraysTest extends UnitTestCase diff --git a/Tests/Unit/DataHandling/Operation/Event/Handler/RemoveFieldsWithNullValueTest.php b/Tests/Unit/DataHandling/Operation/Event/Handler/RemoveFieldsWithNullValueTest.php index 6331ea59..be7d07a8 100644 --- a/Tests/Unit/DataHandling/Operation/Event/Handler/RemoveFieldsWithNullValueTest.php +++ b/Tests/Unit/DataHandling/Operation/Event/Handler/RemoveFieldsWithNullValueTest.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\RemoveFieldsWithNullValue; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\RemoveFieldsWithNullValue; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class RemoveFieldsWithNullValueTest extends UnitTestCase diff --git a/Tests/Unit/DataHandling/Operation/Event/Handler/RemovePendingRelationsForCreatedRecordTest.php b/Tests/Unit/DataHandling/Operation/Event/Handler/RemovePendingRelationsForCreatedRecordTest.php index 65099ef2..2358c364 100644 --- a/Tests/Unit/DataHandling/Operation/Event/Handler/RemovePendingRelationsForCreatedRecordTest.php +++ b/Tests/Unit/DataHandling/Operation/Event/Handler/RemovePendingRelationsForCreatedRecordTest.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; - +namespace FriendsOfTYPO3\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; + +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\RemovePendingRelationsForCreatedRecord; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; +use FriendsOfTYPO3\Interest\Domain\Repository\PendingRelationsRepository; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\RemovePendingRelationsForCreatedRecord; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; -use Pixelant\Interest\Domain\Repository\PendingRelationsRepository; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; diff --git a/Tests/Unit/DataHandling/Operation/Event/Handler/RemovePendingRelationsForDeletedRecordTest.php b/Tests/Unit/DataHandling/Operation/Event/Handler/RemovePendingRelationsForDeletedRecordTest.php index a5e93f4d..6c5877b3 100644 --- a/Tests/Unit/DataHandling/Operation/Event/Handler/RemovePendingRelationsForDeletedRecordTest.php +++ b/Tests/Unit/DataHandling/Operation/Event/Handler/RemovePendingRelationsForDeletedRecordTest.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; - +namespace FriendsOfTYPO3\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; + +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\RemovePendingRelationsForDeletedRecord; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; +use FriendsOfTYPO3\Interest\Domain\Repository\PendingRelationsRepository; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\RemovePendingRelationsForDeletedRecord; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; -use Pixelant\Interest\Domain\Repository\PendingRelationsRepository; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; diff --git a/Tests/Unit/DataHandling/Operation/Event/Handler/ResolveStoragePidTest.php b/Tests/Unit/DataHandling/Operation/Event/Handler/ResolveStoragePidTest.php index c48cbe7e..2abb4002 100644 --- a/Tests/Unit/DataHandling/Operation/Event/Handler/ResolveStoragePidTest.php +++ b/Tests/Unit/DataHandling/Operation/Event/Handler/ResolveStoragePidTest.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\ResolveStoragePid; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\ResolveStoragePid; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class ResolveStoragePidTest extends UnitTestCase diff --git a/Tests/Unit/DataHandling/Operation/Event/Handler/SanitizeFieldValuesTest.php b/Tests/Unit/DataHandling/Operation/Event/Handler/SanitizeFieldValuesTest.php index 90a2f41e..8051f728 100644 --- a/Tests/Unit/DataHandling/Operation/Event/Handler/SanitizeFieldValuesTest.php +++ b/Tests/Unit/DataHandling/Operation/Event/Handler/SanitizeFieldValuesTest.php @@ -2,16 +2,16 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; - +namespace FriendsOfTYPO3\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; + +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\SanitizeFieldValues; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Exception\InvalidArgumentException; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\SanitizeFieldValues; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; -use Pixelant\Interest\DataHandling\Operation\Exception\InvalidArgumentException; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class SanitizeFieldValuesTest extends UnitTestCase diff --git a/Tests/Unit/DataHandling/Operation/Event/Handler/SetContentObjectRendererLanguageTest.php b/Tests/Unit/DataHandling/Operation/Event/Handler/SetContentObjectRendererLanguageTest.php index d8009963..c89cc006 100644 --- a/Tests/Unit/DataHandling/Operation/Event/Handler/SetContentObjectRendererLanguageTest.php +++ b/Tests/Unit/DataHandling/Operation/Event/Handler/SetContentObjectRendererLanguageTest.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\SetContentObjectRendererLanguage; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\SetContentObjectRendererLanguage; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; use TYPO3\CMS\Core\Site\Entity\SiteLanguage; use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; diff --git a/Tests/Unit/DataHandling/Operation/Event/Handler/SetPidTest.php b/Tests/Unit/DataHandling/Operation/Event/Handler/SetPidTest.php index db9dc249..fba4dd60 100644 --- a/Tests/Unit/DataHandling/Operation/Event/Handler/SetPidTest.php +++ b/Tests/Unit/DataHandling/Operation/Event/Handler/SetPidTest.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\SetPid; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\SetPid; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class SetPidTest extends UnitTestCase diff --git a/Tests/Unit/DataHandling/Operation/Event/Handler/SetUidTest.php b/Tests/Unit/DataHandling/Operation/Event/Handler/SetUidTest.php index 98bef282..089dbf6b 100644 --- a/Tests/Unit/DataHandling/Operation/Event/Handler/SetUidTest.php +++ b/Tests/Unit/DataHandling/Operation/Event/Handler/SetUidTest.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; - +namespace FriendsOfTYPO3\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; + +use FriendsOfTYPO3\Interest\DataHandling\DataHandler; +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\SetUid; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\DataHandler; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\SetUid; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; use TYPO3\CMS\Core\Utility\StringUtility; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; diff --git a/Tests/Unit/DataHandling/Operation/Event/Handler/StopIfRepeatingPreviousRecordOperationTest.php b/Tests/Unit/DataHandling/Operation/Event/Handler/StopIfRepeatingPreviousRecordOperationTest.php index cddfce67..42acf49d 100644 --- a/Tests/Unit/DataHandling/Operation/Event/Handler/StopIfRepeatingPreviousRecordOperationTest.php +++ b/Tests/Unit/DataHandling/Operation/Event/Handler/StopIfRepeatingPreviousRecordOperationTest.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Exception\StopRecordOperationException; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\StopIfRepeatingPreviousRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Exception\StopRecordOperationException; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\StopIfRepeatingPreviousRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; diff --git a/Tests/Unit/DataHandling/Operation/Event/Handler/UpdateCountOnForeignSideOfInlineRecordTest.php b/Tests/Unit/DataHandling/Operation/Event/Handler/UpdateCountOnForeignSideOfInlineRecordTest.php index 14dddc74..e45cbcbf 100644 --- a/Tests/Unit/DataHandling/Operation/Event/Handler/UpdateCountOnForeignSideOfInlineRecordTest.php +++ b/Tests/Unit/DataHandling/Operation/Event/Handler/UpdateCountOnForeignSideOfInlineRecordTest.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; +namespace FriendsOfTYPO3\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\UpdateCountOnForeignSideOfInlineRecord; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\UpdateCountOnForeignSideOfInlineRecord; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationInvocationEvent; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class UpdateCountOnForeignSideOfInlineRecordTest extends UnitTestCase diff --git a/Tests/Unit/DataHandling/Operation/Event/Handler/ValidateFieldNamesTest.php b/Tests/Unit/DataHandling/Operation/Event/Handler/ValidateFieldNamesTest.php index 46ea224a..b404fb17 100644 --- a/Tests/Unit/DataHandling/Operation/Event/Handler/ValidateFieldNamesTest.php +++ b/Tests/Unit/DataHandling/Operation/Event/Handler/ValidateFieldNamesTest.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; - +namespace FriendsOfTYPO3\Interest\Tests\Unit\DataHandling\Operation\Event\Handler; + +use FriendsOfTYPO3\Interest\DataHandling\Operation\CreateRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\DeleteRecordOperation; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\ValidateFieldNames; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; +use FriendsOfTYPO3\Interest\DataHandling\Operation\Exception\ConflictException; +use FriendsOfTYPO3\Interest\DataHandling\Operation\UpdateRecordOperation; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\Operation\CreateRecordOperation; -use Pixelant\Interest\DataHandling\Operation\DeleteRecordOperation; -use Pixelant\Interest\DataHandling\Operation\Event\Handler\ValidateFieldNames; -use Pixelant\Interest\DataHandling\Operation\Event\RecordOperationSetupEvent; -use Pixelant\Interest\DataHandling\Operation\Exception\ConflictException; -use Pixelant\Interest\DataHandling\Operation\UpdateRecordOperation; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class ValidateFieldNamesTest extends UnitTestCase diff --git a/Tests/Unit/Domain/Repository/PendingRelationsRepositoryTest.php b/Tests/Unit/Domain/Repository/PendingRelationsRepositoryTest.php index ab77be59..3bc918ec 100644 --- a/Tests/Unit/Domain/Repository/PendingRelationsRepositoryTest.php +++ b/Tests/Unit/Domain/Repository/PendingRelationsRepositoryTest.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\Domain\Repository; +namespace FriendsOfTYPO3\Interest\Tests\Unit\Domain\Repository; +use FriendsOfTYPO3\Interest\Domain\Repository\PendingRelationsRepository; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\Domain\Repository\PendingRelationsRepository; use TYPO3\CMS\Core\Database\Query\QueryBuilder; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; diff --git a/Tests/Unit/Hook/ProcessCmdmapTest.php b/Tests/Unit/Hook/ProcessCmdmapTest.php index 1a027653..1297ce47 100644 --- a/Tests/Unit/Hook/ProcessCmdmapTest.php +++ b/Tests/Unit/Hook/ProcessCmdmapTest.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace Pixelant\Interest\Tests\Unit\Hook; +namespace FriendsOfTYPO3\Interest\Tests\Unit\Hook; +use FriendsOfTYPO3\Interest\DataHandling\DataHandler; +use FriendsOfTYPO3\Interest\Domain\Repository\RemoteIdMappingRepository; +use FriendsOfTYPO3\Interest\Hook\ProcessCmdmap; use PHPUnit\Framework\Attributes\Test; -use Pixelant\Interest\DataHandling\DataHandler; -use Pixelant\Interest\Domain\Repository\RemoteIdMappingRepository; -use Pixelant\Interest\Hook\ProcessCmdmap; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; diff --git a/Tests/Unit/Reaction/CreateUpdateDeleteReactionTest.php b/Tests/Unit/Reaction/CreateUpdateDeleteReactionTest.php index 4e2435a5..20adb90b 100644 --- a/Tests/Unit/Reaction/CreateUpdateDeleteReactionTest.php +++ b/Tests/Unit/Reaction/CreateUpdateDeleteReactionTest.php @@ -1,9 +1,9 @@ createMock($fqcn); diff --git a/composer.json b/composer.json index 112b5de5..70d427a4 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "pixelant/interest", + "name": "friendsoftypo3/interest", "description": "REST and CLI API for adding, updating, and deleting records in TYPO3. Tracks relations so records can be inserted in any order. Uses remote ID mapping so you don't have to keep track of what UID a record has gotten after import. Data is inserted using backend APIs as if a real human did it, so you can can inspect the record history and undo actions.", "license": "GPL-2.0-or-later", "type": "typo3-cms-extension", @@ -52,12 +52,12 @@ "prefer-stable": true, "autoload": { "psr-4": { - "Pixelant\\Interest\\": "Classes/" + "FriendsOfTYPO3\\Interest\\": "Classes/" } }, "autoload-dev": { "psr-4": { - "Pixelant\\Interest\\Tests\\": "Tests/" + "FriendsOfTYPO3\\Interest\\Tests\\": "Tests/" } }, "config": { diff --git a/ext_localconf.php b/ext_localconf.php index 12f2bc81..06b23ad6 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -1,8 +1,8 @@