Renamed domain FixtureManagement to Fixture

This commit is contained in:
Kevin Frantz 2019-05-30 16:10:09 +02:00
parent 1e166cf199
commit 8307016460
29 changed files with 54 additions and 54 deletions

View File

@ -4,7 +4,7 @@ namespace Infinito\Controller;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Response;
use Infinito\Domain\FixtureManagement\FixtureSource\HomepageFixtureSource;
use Infinito\Domain\Fixture\FixtureSource\HomepageFixtureSource;
use Infinito\DBAL\Types\Meta\Right\LayerType;
use Infinito\DBAL\Types\RESTResponseType;

View File

@ -4,7 +4,7 @@ namespace Infinito\DataFixtures;
use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Common\Persistence\ObjectManager;
use Infinito\Domain\FixtureManagement\FixtureSourceFactory;
use Infinito\Domain\Fixture\FixtureSourceFactory;
/**
* @author kevinfrantz

View File

@ -1,6 +1,6 @@
<?php
namespace Infinito\Domain\FixtureManagement;
namespace Infinito\Domain\Fixture;
use Infinito\Entity\Meta\Right;
use Infinito\DBAL\Types\Meta\Right\LayerType;

View File

@ -1,6 +1,6 @@
<?php
namespace Infinito\Domain\FixtureManagement\FixtureSource;
namespace Infinito\Domain\Fixture\FixtureSource;
/**
* Classes which inhiere from this class and should be loaded by SourceFixtures MUST be declared as final.
@ -17,7 +17,7 @@ abstract class AbstractFixtureSource implements FixtureSourceInterface
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\FixtureManagement\FixtureSource\FixtureSourceInterface::getName()
* @see \Infinito\Domain\Fixture\FixtureSource\FixtureSourceInterface::getName()
*/
public function getName(): string
{

View File

@ -1,6 +1,6 @@
<?php
namespace Infinito\Domain\FixtureManagement\FixtureSource;
namespace Infinito\Domain\Fixture\FixtureSource;
use Infinito\Entity\Source\SourceInterface;
use Infinito\Attribut\SlugAttributInterface;

View File

@ -1,10 +1,10 @@
<?php
namespace Infinito\Domain\FixtureManagement\FixtureSource;
namespace Infinito\Domain\Fixture\FixtureSource;
use Infinito\Entity\Source\SourceInterface;
use Infinito\Entity\Source\Complex\UserSource;
use Infinito\Domain\FixtureManagement\EntityTemplateFactory;
use Infinito\Domain\Fixture\EntityTemplateFactory;
/**
* This class containes the guest user.
@ -21,7 +21,7 @@ final class GuestUserFixtureSource extends AbstractFixtureSource
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\FixtureManagement\FixtureSource\FixtureSourceInterface::getORMReadyObject()
* @see \Infinito\Domain\Fixture\FixtureSource\FixtureSourceInterface::getORMReadyObject()
*/
public function getORMReadyObject(): SourceInterface
{

View File

@ -1,10 +1,10 @@
<?php
namespace Infinito\Domain\FixtureManagement\FixtureSource;
namespace Infinito\Domain\Fixture\FixtureSource;
use Infinito\Entity\Source\SourceInterface;
use Infinito\Entity\Source\Primitive\Text\TextSource;
use Infinito\Domain\FixtureManagement\EntityTemplateFactory;
use Infinito\Domain\Fixture\EntityTemplateFactory;
/**
* @author kevinfrantz
@ -14,7 +14,7 @@ final class HelpFixtureSource extends AbstractFixtureSource
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\FixtureManagement\FixtureSource\FixtureSourceInterface::getORMReadyObject()
* @see \Infinito\Domain\Fixture\FixtureSource\FixtureSourceInterface::getORMReadyObject()
*/
public function getORMReadyObject(): SourceInterface
{

View File

@ -1,10 +1,10 @@
<?php
namespace Infinito\Domain\FixtureManagement\FixtureSource;
namespace Infinito\Domain\Fixture\FixtureSource;
use Infinito\Entity\Source\SourceInterface;
use Infinito\Entity\Source\Primitive\Text\TextSource;
use Infinito\Domain\FixtureManagement\EntityTemplateFactory;
use Infinito\Domain\Fixture\EntityTemplateFactory;
/**
* @author kevinfrantz
@ -14,7 +14,7 @@ final class HomepageFixtureSource extends AbstractFixtureSource
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\FixtureManagement\FixtureSource\FixtureSourceInterface::getORMReadyObject()
* @see \Infinito\Domain\Fixture\FixtureSource\FixtureSourceInterface::getORMReadyObject()
*/
public function getORMReadyObject(): SourceInterface
{

View File

@ -1,10 +1,10 @@
<?php
namespace Infinito\Domain\FixtureManagement\FixtureSource;
namespace Infinito\Domain\Fixture\FixtureSource;
use Infinito\Entity\Source\SourceInterface;
use Infinito\Entity\Source\Primitive\Text\TextSource;
use Infinito\Domain\FixtureManagement\EntityTemplateFactory;
use Infinito\Domain\Fixture\EntityTemplateFactory;
/**
* @author kevinfrantz
@ -14,7 +14,7 @@ final class ImpressumFixtureSource extends AbstractFixtureSource
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\FixtureManagement\FixtureSource\FixtureSourceInterface::getORMReadyObject()
* @see \Infinito\Domain\Fixture\FixtureSource\FixtureSourceInterface::getORMReadyObject()
*/
public function getORMReadyObject(): SourceInterface
{

View File

@ -1,10 +1,10 @@
<?php
namespace Infinito\Domain\FixtureManagement\FixtureSource;
namespace Infinito\Domain\Fixture\FixtureSource;
use Infinito\Entity\Source\SourceInterface;
use Infinito\Entity\Source\Primitive\Text\TextSource;
use Infinito\Domain\FixtureManagement\EntityTemplateFactory;
use Infinito\Domain\Fixture\EntityTemplateFactory;
/**
* @author kevinfrantz
@ -14,7 +14,7 @@ final class InformationFixtureSource extends AbstractFixtureSource
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\FixtureManagement\FixtureSource\FixtureSourceInterface::getORMReadyObject()
* @see \Infinito\Domain\Fixture\FixtureSource\FixtureSourceInterface::getORMReadyObject()
*/
public function getORMReadyObject(): SourceInterface
{

View File

@ -1,9 +1,9 @@
<?php
namespace Infinito\Domain\FixtureManagement;
namespace Infinito\Domain\Fixture;
use HaydenPierce\ClassFinder\ClassFinder;
use Infinito\Domain\FixtureManagement\FixtureSource\FixtureSourceInterface;
use Infinito\Domain\Fixture\FixtureSource\FixtureSourceInterface;
/**
* @author kevinfrantz
@ -13,7 +13,7 @@ final class FixtureSourceFactory implements FixtureSourceFactoryInterface
/**
* @var string Namespace in which the fixture sources are saved
*/
private const FIXTURE_SOURCE_NAMESPACE = 'Infinito\Domain\FixtureManagement\FixtureSource';
private const FIXTURE_SOURCE_NAMESPACE = 'Infinito\Domain\Fixture\FixtureSource';
/**
* @return array|FixtureSourceInterface[]

View File

@ -1,8 +1,8 @@
<?php
namespace Infinito\Domain\FixtureManagement;
namespace Infinito\Domain\Fixture;
use Infinito\Domain\FixtureManagement\FixtureSource\FixtureSourceInterface;
use Infinito\Domain\Fixture\FixtureSource\FixtureSourceInterface;
/**
* Offers a Factory to produce sources.

View File

@ -5,7 +5,7 @@ namespace Infinito\Domain\UserManagement;
use Infinito\Entity\UserInterface;
use Infinito\Entity\User;
use Infinito\Repository\Source\SourceRepositoryInterface;
use Infinito\Domain\FixtureManagement\FixtureSource\GuestUserFixtureSource;
use Infinito\Domain\Fixture\FixtureSource\GuestUserFixtureSource;
/**
* @author kevinfrantz

View File

@ -13,13 +13,13 @@ use Symfony\Component\EventDispatcher\Event;
use Infinito\DBAL\Types\RESTResponseType;
use Infinito\DBAL\Types\Meta\Right\LayerType;
use Infinito\Controller\API\Rest\LayerController;
use Infinito\Domain\FixtureManagement\FixtureSourceFactory;
use Infinito\Domain\FixtureManagement\FixtureSource\FixtureSourceInterface;
use Infinito\Domain\FixtureManagement\FixtureSource\GuestUserFixtureSource;
use Infinito\Domain\FixtureManagement\FixtureSource\HomepageFixtureSource;
use Infinito\Domain\FixtureManagement\FixtureSource\ImpressumFixtureSource;
use Infinito\Domain\FixtureManagement\FixtureSource\InformationFixtureSource;
use Infinito\Domain\FixtureManagement\FixtureSource\HelpFixtureSource;
use Infinito\Domain\Fixture\FixtureSourceFactory;
use Infinito\Domain\Fixture\FixtureSource\FixtureSourceInterface;
use Infinito\Domain\Fixture\FixtureSource\GuestUserFixtureSource;
use Infinito\Domain\Fixture\FixtureSource\HomepageFixtureSource;
use Infinito\Domain\Fixture\FixtureSource\ImpressumFixtureSource;
use Infinito\Domain\Fixture\FixtureSource\InformationFixtureSource;
use Infinito\Domain\Fixture\FixtureSource\HelpFixtureSource;
/**
* @author kevinfrantz

View File

@ -5,7 +5,7 @@ namespace Tests\Functional;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Bundle\FrameworkBundle\Client;
use Infinito\Domain\FixtureManagement\FixtureSource\HomepageFixtureSource;
use Infinito\Domain\Fixture\FixtureSource\HomepageFixtureSource;
/**
* @author kevinfrantz

View File

@ -6,8 +6,8 @@ use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Doctrine\ORM\EntityManager;
use Infinito\Entity\Source\AbstractSource;
use Infinito\Entity\Source\Complex\UserSourceInterface;
use Infinito\Domain\FixtureManagement\FixtureSource\ImpressumFixtureSource;
use Infinito\Domain\FixtureManagement\FixtureSource\GuestUserFixtureSource;
use Infinito\Domain\Fixture\FixtureSource\ImpressumFixtureSource;
use Infinito\Domain\Fixture\FixtureSource\GuestUserFixtureSource;
class SourceFixturesIntegrationTest extends KernelTestCase
{

View File

@ -5,7 +5,7 @@ namespace tests\Integration\Domain\Action;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Infinito\Domain\Action\ActionHandlerServiceInterface;
use Infinito\Domain\RequestManagement\Action\RequestedActionServiceInterface;
use Infinito\Domain\FixtureManagement\FixtureSource\ImpressumFixtureSource;
use Infinito\Domain\Fixture\FixtureSource\ImpressumFixtureSource;
use Infinito\Entity\Source\SourceInterface;
use Infinito\DBAL\Types\ActionType;
use Infinito\DBAL\Types\Meta\Right\LayerType;

View File

@ -1,10 +1,10 @@
<?php
namespace tests\Integration\Domain\FixtureManagement;
namespace tests\Integration\Domain\Fixture;
use PHPUnit\Framework\TestCase;
use Infinito\Entity\Source\AbstractSource;
use Infinito\Domain\FixtureManagement\EntityTemplateFactory;
use Infinito\Domain\Fixture\EntityTemplateFactory;
use Infinito\Entity\Source\Complex\UserSource;
use Infinito\Entity\Meta\Right;
use Infinito\DBAL\Types\Meta\Right\LayerType;

View File

@ -1,10 +1,10 @@
<?php
namespace tests\Integration\Domain\FixtureManagement;
namespace tests\Integration\Domain\Fixture;
use PHPUnit\Framework\TestCase;
use Infinito\Domain\FixtureManagement\FixtureSourceFactory;
use Infinito\Domain\FixtureManagement\FixtureSource\FixtureSourceInterface;
use Infinito\Domain\Fixture\FixtureSourceFactory;
use Infinito\Domain\Fixture\FixtureSource\FixtureSourceInterface;
use Infinito\Entity\Source\SourceInterface;
/**

View File

@ -1,10 +1,10 @@
<?php
namespace tests\Integration\Domain\FixtureManagement;
namespace tests\Integration\Domain\Fixture;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Component\HttpFoundation\Request;
use Infinito\Domain\FixtureManagement\FixtureSource\ImpressumFixtureSource;
use Infinito\Domain\Fixture\FixtureSource\ImpressumFixtureSource;
/**
* @author kevinfrantz

View File

@ -13,7 +13,7 @@ use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Role\Role;
use Infinito\Domain\FixtureManagement\FixtureSource\GuestUserFixtureSource;
use Infinito\Domain\Fixture\FixtureSource\GuestUserFixtureSource;
use Infinito\Entity\User;
/**

View File

@ -5,7 +5,7 @@ namespace Infinito\Tests\Unit\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Infinito\Controller\DefaultController;
use Infinito\DBAL\Types\RESTResponseType;
use Infinito\Domain\FixtureManagement\FixtureSource\ImpressumFixtureSource;
use Infinito\Domain\Fixture\FixtureSource\ImpressumFixtureSource;
/**
* @author kevinfrantz

View File

@ -1,9 +1,9 @@
<?php
namespace tests\Unit\Domain\FixtureManagement;
namespace tests\Unit\Domain\Fixture;
use PHPUnit\Framework\TestCase;
use Infinito\Domain\FixtureManagement\FixtureSource\GuestUserFixtureSource;
use Infinito\Domain\Fixture\FixtureSource\GuestUserFixtureSource;
/**
* @author kevinfrantz

View File

@ -14,7 +14,7 @@ use Infinito\Domain\RequestManagement\Right\RequestedRight;
use Infinito\Domain\RequestManagement\Entity\RequestedEntityInterface;
use Infinito\Entity\Source\SourceInterface;
use Infinito\Domain\RequestManagement\Right\AbstractRequestedRightFacade;
use Infinito\Domain\FixtureManagement\FixtureSource\ImpressumFixtureSource;
use Infinito\Domain\Fixture\FixtureSource\ImpressumFixtureSource;
use Infinito\Exception\Collection\NotPossibleSetElementException;
/**

View File

@ -15,7 +15,7 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Infinito\Entity\Meta\Law;
use Infinito\Entity\Source\SourceInterface;
use Infinito\DBAL\Types\ActionType;
use Infinito\Domain\FixtureManagement\FixtureSource\ImpressumFixtureSource;
use Infinito\Domain\Fixture\FixtureSource\ImpressumFixtureSource;
use Infinito\Exception\Core\NoIdentityCoreException;
use Infinito\Exception\Collection\ContainsElementException;

View File

@ -14,7 +14,7 @@ use Infinito\Domain\RequestManagement\Right\RequestedRight;
use Infinito\Domain\UserManagement\UserSourceDirector;
use Infinito\Repository\Source\SourceRepositoryInterface;
use Infinito\Domain\RequestManagement\Entity\RequestedEntityInterface;
use Infinito\Domain\FixtureManagement\FixtureSource\ImpressumFixtureSource;
use Infinito\Domain\Fixture\FixtureSource\ImpressumFixtureSource;
use Infinito\Exception\Core\NotCorrectInstanceCoreException;
use Infinito\Exception\Collection\NotPossibleSetElementException;

View File

@ -7,7 +7,7 @@ use Infinito\Entity\User;
use Infinito\Domain\UserManagement\UserSourceDirector;
use Infinito\Repository\Source\SourceRepository;
use Infinito\Entity\Source\AbstractSource;
use Infinito\Domain\FixtureManagement\FixtureSource\GuestUserFixtureSource;
use Infinito\Domain\Fixture\FixtureSource\GuestUserFixtureSource;
/**
* @author kevinfrantz

View File

@ -7,7 +7,7 @@ use Infinito\Repository\Source\SourceRepositoryInterface;
use Infinito\Entity\Source\AbstractSource;
use Infinito\Domain\RequestManagement\Entity\RequestedEntityInterface;
use Infinito\Entity\Source\SourceInterface;
use Infinito\Domain\FixtureManagement\FixtureSource\ImpressumFixtureSource;
use Infinito\Domain\Fixture\FixtureSource\ImpressumFixtureSource;
/**
* @author kevinfrantz