Changed App namespace to Infinito namespace

This commit is contained in:
Kevin Frantz
2019-02-17 14:33:19 +01:00
parent bf5d11a318
commit 493471df5f
424 changed files with 1488 additions and 1500 deletions

View File

@@ -1,21 +1,21 @@
<?php
namespace App\Entity\Source;
namespace Infinito\Entity\Source;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation\Exclude;
use App\Entity\AbstractEntity;
use App\Attribut\LawAttribut;
use App\Entity\Meta\LawInterface;
use App\Entity\Meta\Law;
use Infinito\Entity\AbstractEntity;
use Infinito\Attribut\LawAttribut;
use Infinito\Entity\Meta\LawInterface;
use Infinito\Entity\Meta\Law;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use App\Attribut\CreatorRelationAttribut;
use App\Entity\Meta\Relation\Parent\CreatorRelationInterface;
use App\Entity\Meta\Relation\Parent\CreatorRelation;
use App\Attribut\MemberRelationAttribut;
use App\Entity\Meta\Relation\Member\MemberRelation;
use App\Entity\Meta\Relation\Member\MemberRelationInterface;
use App\Attribut\SlugAttribut;
use Infinito\Attribut\CreatorRelationAttribut;
use Infinito\Entity\Meta\Relation\Parent\CreatorRelationInterface;
use Infinito\Entity\Meta\Relation\Parent\CreatorRelation;
use Infinito\Attribut\MemberRelationAttribut;
use Infinito\Entity\Meta\Relation\Member\MemberRelation;
use Infinito\Entity\Meta\Relation\Member\MemberRelationInterface;
use Infinito\Attribut\SlugAttribut;
use Symfony\Component\Validator\Constraints as Assert;
/**
@@ -27,23 +27,23 @@ use Symfony\Component\Validator\Constraints as Assert;
*
* @see http://www.inanzzz.com/index.php/post/h0jt/bidirectional-many-to-many-cascade-remove-and-orphan-removal-operations-in-doctrine
*
* @ORM\Entity(repositoryClass="App\Repository\Source\SourceRepository")
* @ORM\Entity(repositoryClass="Infinito\Repository\Source\SourceRepository")
* @ORM\Table(name="source")
* @ORM\InheritanceType("JOINED")
* @ORM\DiscriminatorColumn(name="discr", type="string")
* @ORM\DiscriminatorMap({
* "pure" = "PureSource",
* "text" = "App\Entity\Source\Primitive\Text\TextSource",
* "operation"="App\Entity\Source\Operation\AbstractOperation",
* "user" = "App\Entity\Source\Complex\UserSource",
* "fullpersonname" = "App\Entity\Source\Complex\FullPersonNameSource",
* "personidentitysource"="App\Entity\Source\Complex\PersonIdentitySource",
* "fullpersonnamesource"="App\Entity\Source\Complex\FullPersonNameSource",
* "member" = "App\Entity\Source\Complex\Collection\TreeCollectionSource",
* "and" = "App\Entity\Source\Operation\AndOperation",
* "nickname" = "App\Entity\Source\Primitive\Name\NicknameSource",
* "firstname" = "App\Entity\Source\Primitive\Name\FirstNameSource",
* "surname" = "App\Entity\Source\Primitive\Name\SurnameSource"
* "text" = "Infinito\Entity\Source\Primitive\Text\TextSource",
* "operation"="Infinito\Entity\Source\Operation\AbstractOperation",
* "user" = "Infinito\Entity\Source\Complex\UserSource",
* "fullpersonname" = "Infinito\Entity\Source\Complex\FullPersonNameSource",
* "personidentitysource"="Infinito\Entity\Source\Complex\PersonIdentitySource",
* "fullpersonnamesource"="Infinito\Entity\Source\Complex\FullPersonNameSource",
* "member" = "Infinito\Entity\Source\Complex\Collection\TreeCollectionSource",
* "and" = "Infinito\Entity\Source\Operation\AndOperation",
* "nickname" = "Infinito\Entity\Source\Primitive\Name\NicknameSource",
* "firstname" = "Infinito\Entity\Source\Primitive\Name\FirstNameSource",
* "surname" = "Infinito\Entity\Source\Primitive\Name\SurnameSource"
* })
* @UniqueEntity("slug",ignoreNull=true)
*/
@@ -68,7 +68,7 @@ abstract class AbstractSource extends AbstractEntity implements SourceInterface
/**
* @var CreatorRelationInterface
* @ORM\OneToOne(targetEntity="App\Entity\Meta\Relation\Parent\CreatorRelation",cascade={"persist", "remove"})
* @ORM\OneToOne(targetEntity="Infinito\Entity\Meta\Relation\Parent\CreatorRelation",cascade={"persist", "remove"})
* @ORM\JoinColumn(name="creator_relation_id", referencedColumnName="id", onDelete="CASCADE")
* @Exclude
*/
@@ -76,14 +76,14 @@ abstract class AbstractSource extends AbstractEntity implements SourceInterface
/**
* @var MemberRelationInterface
* @ORM\OneToOne(targetEntity="App\Entity\Meta\Relation\Member\MemberRelation",cascade={"persist", "remove"})
* @ORM\OneToOne(targetEntity="Infinito\Entity\Meta\Relation\Member\MemberRelation",cascade={"persist", "remove"})
* @ORM\JoinColumn(name="member_relation_id", referencedColumnName="id", onDelete="CASCADE")
* @Exclude
*/
protected $memberRelation;
/**
* @ORM\OneToOne(targetEntity="App\Entity\Meta\Law",cascade={"persist", "remove"})
* @ORM\OneToOne(targetEntity="Infinito\Entity\Meta\Law",cascade={"persist", "remove"})
* @ORM\JoinColumn(name="law_id", referencedColumnName="id", onDelete="CASCADE")
*
* @var LawInterface

View File

@@ -1,8 +1,8 @@
<?php
namespace App\Entity\Source\Complex;
namespace Infinito\Entity\Source\Complex;
use App\Entity\Source\AbstractSource;
use Infinito\Entity\Source\AbstractSource;
/**
* @author kevinfrantz

View File

@@ -1,11 +1,11 @@
<?php
namespace App\Entity\Source\Complex\Collection;
namespace Infinito\Entity\Source\Complex\Collection;
use App\Entity\Source\AbstractSource;
use App\Attribut\CollectionAttribut;
use Infinito\Entity\Source\AbstractSource;
use Infinito\Attribut\CollectionAttribut;
use Doctrine\Common\Collections\Collection;
use App\Entity\Source\SourceInterface;
use Infinito\Entity\Source\SourceInterface;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
@@ -18,7 +18,7 @@ abstract class AbstractCollectionSource extends AbstractSource implements Collec
/**
* @var Collection|SourceInterface[]
* @ORM\ManyToMany(targetEntity="App\Entity\Source\AbstractSource")
* @ORM\ManyToMany(targetEntity="Infinito\Entity\Source\AbstractSource")
* @ORM\JoinTable(name="collection_source",
* joinColumns={@ORM\JoinColumn(name="collection_id", referencedColumnName="id")},
* inverseJoinColumns={@ORM\JoinColumn(name="source_id", referencedColumnName="id")}

View File

@@ -1,9 +1,9 @@
<?php
namespace App\Entity\Source\Complex\Collection;
namespace Infinito\Entity\Source\Complex\Collection;
use App\Entity\Source\SourceInterface;
use App\Attribut\CollectionAttributInterface;
use Infinito\Entity\Source\SourceInterface;
use Infinito\Attribut\CollectionAttributInterface;
interface CollectionSourceInterface extends SourceInterface, CollectionAttributInterface
{

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Source\Complex\Collection;
namespace Infinito\Entity\Source\Complex\Collection;
use Doctrine\ORM\Mapping as ORM;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Source\Complex\Collection;
namespace Infinito\Entity\Source\Complex\Collection;
/**
* @author kevinfrantz

View File

@@ -1,8 +1,8 @@
<?php
namespace App\Entity\Source\Complex;
namespace Infinito\Entity\Source\Complex;
use App\Entity\Source\SourceInterface;
use Infinito\Entity\Source\SourceInterface;
/**
* Complex sources contain out of one or more primitive sources.

View File

@@ -1,14 +1,14 @@
<?php
namespace App\Entity\Source\Complex;
namespace Infinito\Entity\Source\Complex;
use App\Attribut\FirstNameSourceAttribut;
use App\Attribut\SurnameSourceAttribut;
use App\Entity\Source\Primitive\Name\SurnameSource;
use App\Entity\Source\Primitive\Name\FirstNameSource;
use Infinito\Attribut\FirstNameSourceAttribut;
use Infinito\Attribut\SurnameSourceAttribut;
use Infinito\Entity\Source\Primitive\Name\SurnameSource;
use Infinito\Entity\Source\Primitive\Name\FirstNameSource;
use Doctrine\ORM\Mapping as ORM;
use App\Entity\Source\Primitive\Name\SurnameSourceInterface;
use App\Entity\Source\Primitive\Name\FirstNameSourceInterface;
use Infinito\Entity\Source\Primitive\Name\SurnameSourceInterface;
use Infinito\Entity\Source\Primitive\Name\FirstNameSourceInterface;
/**
* @author kevinfrantz
@@ -19,7 +19,7 @@ class FullPersonNameSource extends AbstractComplexSource implements FullPersonNa
use FirstNameSourceAttribut,SurnameSourceAttribut;
/**
* @ORM\OneToOne(targetEntity="App\Entity\Source\Primitive\Name\SurnameSource",cascade={"persist", "remove"})
* @ORM\OneToOne(targetEntity="Infinito\Entity\Source\Primitive\Name\SurnameSource",cascade={"persist", "remove"})
* @ORM\JoinColumn(name="surname_id", referencedColumnName="id",onDelete="CASCADE")
*
* @var SurnameSourceInterface
@@ -27,7 +27,7 @@ class FullPersonNameSource extends AbstractComplexSource implements FullPersonNa
protected $surnameSource;
/**
* @ORM\OneToOne(targetEntity="App\Entity\Source\Primitive\Name\FirstNameSource",cascade={"persist", "remove"})
* @ORM\OneToOne(targetEntity="Infinito\Entity\Source\Primitive\Name\FirstNameSource",cascade={"persist", "remove"})
* @ORM\JoinColumn(name="firstname_id", referencedColumnName="id",onDelete="CASCADE")
*
* @var FirstNameSourceInterface

View File

@@ -1,9 +1,9 @@
<?php
namespace App\Entity\Source\Complex;
namespace Infinito\Entity\Source\Complex;
use App\Attribut\FirstNameSourceAttributInterface;
use App\Attribut\SurnameSourceAttributInterface;
use Infinito\Attribut\FirstNameSourceAttributInterface;
use Infinito\Attribut\SurnameSourceAttributInterface;
/**
* @todo Maybe a middle name would be helpfull in the future ;)

View File

@@ -1,8 +1,8 @@
<?php
namespace App\Entity\Source\Complex;
namespace Infinito\Entity\Source\Complex;
use App\Attribut\FullPersonNameSourceAttribut;
use Infinito\Attribut\FullPersonNameSourceAttribut;
use Doctrine\ORM\Mapping as ORM;
/**

View File

@@ -1,8 +1,8 @@
<?php
namespace App\Entity\Source\Complex;
namespace Infinito\Entity\Source\Complex;
use App\Attribut\FullPersonNameSourceAttributInterface;
use Infinito\Attribut\FullPersonNameSourceAttributInterface;
interface PersonIdentitySourceInterface extends ComplexSourceInterface, FullPersonNameSourceAttributInterface
{

View File

@@ -1,22 +1,22 @@
<?php
namespace App\Entity\Source\Complex;
namespace Infinito\Entity\Source\Complex;
use Doctrine\ORM\Mapping as ORM;
use App\Attribut\UserAttribut;
use App\Entity\UserInterface;
use App\Attribut\PersonIdentitySourceAttribut;
use Infinito\Attribut\UserAttribut;
use Infinito\Entity\UserInterface;
use Infinito\Attribut\PersonIdentitySourceAttribut;
/**
* @author kevinfrantz
* @ORM\Entity(repositoryClass="App\Repository\Source\Complex\UserSourceRepository")
* @ORM\Entity(repositoryClass="Infinito\Repository\Source\Complex\UserSourceRepository")
*/
class UserSource extends AbstractComplexSource implements UserSourceInterface
{
use UserAttribut,PersonIdentitySourceAttribut;
/**
* @ORM\OneToOne(targetEntity="App\Entity\User",cascade={"persist", "remove"})
* @ORM\OneToOne(targetEntity="Infinito\Entity\User",cascade={"persist", "remove"})
* @ORM\JoinColumn(name="user_id", referencedColumnName="id",onDelete="CASCADE")
*
* @var UserInterface

View File

@@ -1,9 +1,9 @@
<?php
namespace App\Entity\Source\Complex;
namespace Infinito\Entity\Source\Complex;
use App\Attribut\UserAttributInterface;
use App\Attribut\PersonIdentitySourceAttributInterface;
use Infinito\Attribut\UserAttributInterface;
use Infinito\Attribut\PersonIdentitySourceAttributInterface;
/**
* @author kevinfrantz

View File

@@ -1,14 +1,14 @@
<?php
namespace App\Entity\Source\Operation;
namespace Infinito\Entity\Source\Operation;
use App\Logic\Result\ResultInterface;
use App\Logic\Operation\OperandInterface;
use Infinito\Logic\Result\ResultInterface;
use Infinito\Logic\Operation\OperandInterface;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use App\Entity\Source\AbstractSource;
use App\Entity\Source\Operation\Attribut\OperandsAttribut;
use App\Exception\NotProcessedException;
use Infinito\Entity\Source\AbstractSource;
use Infinito\Entity\Source\Operation\Attribut\OperandsAttribut;
use Infinito\Exception\NotProcessedException;
/**
* @author kevinfrantz

View File

@@ -1,10 +1,10 @@
<?php
namespace App\Entity\Source\Operation;
namespace Infinito\Entity\Source\Operation;
use App\Logic\Result\Result;
use Infinito\Logic\Result\Result;
use Doctrine\ORM\Mapping as ORM;
use App\Exception\NotDefinedException;
use Infinito\Exception\NotDefinedException;
/**
* @author kevinfrantz

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Source\Operation;
namespace Infinito\Entity\Source\Operation;
interface AndOperationInterface extends OperationInterface
{

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Source\Operation\Attribut;
namespace Infinito\Entity\Source\Operation\Attribut;
use Doctrine\Common\Collections\Collection;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Source\Operation\Attribut;
namespace Infinito\Entity\Source\Operation\Attribut;
use Doctrine\Common\Collections\Collection;

View File

@@ -1,9 +1,9 @@
<?php
namespace App\Entity\Source\Operation;
namespace Infinito\Entity\Source\Operation;
use App\Entity\Source\Operation\Attribut\OperandsAttributInterface;
use App\Logic\Operation\OperationInterface as OperationInterfaceOrigine;
use Infinito\Entity\Source\Operation\Attribut\OperandsAttributInterface;
use Infinito\Logic\Operation\OperationInterface as OperationInterfaceOrigine;
interface OperationInterface extends OperandsAttributInterface, OperationInterfaceOrigine
{

View File

@@ -1,8 +1,8 @@
<?php
namespace App\Entity\Source\Primitive;
namespace Infinito\Entity\Source\Primitive;
use App\Entity\Source\AbstractSource;
use Infinito\Entity\Source\AbstractSource;
/**
* @author kevinfrantz

View File

@@ -1,9 +1,9 @@
<?php
namespace App\Entity\Source\Primitive\Name;
namespace Infinito\Entity\Source\Primitive\Name;
use App\Entity\Source\Primitive\AbstractPrimitiveSource;
use App\Attribut\NameAttribut;
use Infinito\Entity\Source\Primitive\AbstractPrimitiveSource;
use Infinito\Attribut\NameAttribut;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Source\Primitive\Name;
namespace Infinito\Entity\Source\Primitive\Name;
use Doctrine\ORM\Mapping as ORM;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Source\Primitive\Name;
namespace Infinito\Entity\Source\Primitive\Name;
interface FirstNameSourceInterface extends NameSourceInterface
{

View File

@@ -1,9 +1,9 @@
<?php
namespace App\Entity\Source\Primitive\Name;
namespace Infinito\Entity\Source\Primitive\Name;
use App\Entity\Source\Primitive\PrimitiveSourceInterface;
use App\Attribut\NameAttributInterface;
use Infinito\Entity\Source\Primitive\PrimitiveSourceInterface;
use Infinito\Attribut\NameAttributInterface;
interface NameSourceInterface extends PrimitiveSourceInterface, NameAttributInterface
{

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Source\Primitive\Name;
namespace Infinito\Entity\Source\Primitive\Name;
use Doctrine\ORM\Mapping as ORM;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Source\Primitive\Name;
namespace Infinito\Entity\Source\Primitive\Name;
/**
* @author kevinfrantz

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Source\Primitive\Name;
namespace Infinito\Entity\Source\Primitive\Name;
use Doctrine\ORM\Mapping as ORM;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Source\Primitive\Name;
namespace Infinito\Entity\Source\Primitive\Name;
interface SurnameSourceInterface extends NameSourceInterface
{

View File

@@ -1,8 +1,8 @@
<?php
namespace App\Entity\Source\Primitive;
namespace Infinito\Entity\Source\Primitive;
use App\Entity\Source\SourceInterface;
use Infinito\Entity\Source\SourceInterface;
/**
* Primitive sources contain one attribut, which is not a source.

View File

@@ -1,9 +1,9 @@
<?php
namespace App\Entity\Source\Primitive\Text;
namespace Infinito\Entity\Source\Primitive\Text;
use App\Entity\Source\Primitive\AbstractPrimitiveSource;
use App\Attribut\TextAttribut;
use Infinito\Entity\Source\Primitive\AbstractPrimitiveSource;
use Infinito\Attribut\TextAttribut;
use Doctrine\ORM\Mapping as ORM;
/**

View File

@@ -1,9 +1,9 @@
<?php
namespace App\Entity\Source\Primitive\Text;
namespace Infinito\Entity\Source\Primitive\Text;
use App\Entity\Source\Primitive\PrimitiveSourceInterface;
use App\Attribut\TextAttributInterface;
use Infinito\Entity\Source\Primitive\PrimitiveSourceInterface;
use Infinito\Attribut\TextAttributInterface;
interface TextSourceInterface extends PrimitiveSourceInterface, TextAttributInterface
{

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Source;
namespace Infinito\Entity\Source;
use Doctrine\ORM\Mapping as ORM;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Source;
namespace Infinito\Entity\Source;
/**
* @author kevinfrantz

View File

@@ -1,13 +1,13 @@
<?php
namespace App\Entity\Source;
namespace Infinito\Entity\Source;
use App\Attribut\IdAttributInterface;
use App\Entity\EntityInterface;
use App\Attribut\LawAttributInterface;
use App\Attribut\CreatorRelationAttributInterface;
use App\Attribut\MemberRelationAttributInterface;
use App\Attribut\SlugAttributInterface;
use Infinito\Attribut\IdAttributInterface;
use Infinito\Entity\EntityInterface;
use Infinito\Attribut\LawAttributInterface;
use Infinito\Attribut\CreatorRelationAttributInterface;
use Infinito\Attribut\MemberRelationAttributInterface;
use Infinito\Attribut\SlugAttributInterface;
/**
* @author kevinfrantz