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,10 +1,10 @@
<?php
namespace App\Entity;
namespace Infinito\Entity;
use App\Attribut\IdAttribut;
use Infinito\Attribut\IdAttribut;
use Doctrine\ORM\Mapping as ORM;
use App\Attribut\VersionAttribut;
use Infinito\Attribut\VersionAttribut;
/**
* @author kevinfrantz

View File

@@ -1,9 +1,9 @@
<?php
namespace App\Entity;
namespace Infinito\Entity;
use App\Attribut\VersionAttributInterface;
use App\Attribut\IdAttributInterface;
use Infinito\Attribut\VersionAttributInterface;
use Infinito\Attribut\IdAttributInterface;
/**
* @author kevinfrantz

View File

@@ -1,9 +1,9 @@
<?php
namespace App\Entity\Meta;
namespace Infinito\Entity\Meta;
use App\Entity\AbstractEntity;
use App\Attribut\SourceAttribut;
use Infinito\Entity\AbstractEntity;
use Infinito\Attribut\SourceAttribut;
/**
* @todo Implement source attribut

View File

@@ -1,18 +1,18 @@
<?php
namespace App\Entity\Meta;
namespace Infinito\Entity\Meta;
use Doctrine\ORM\Mapping as ORM;
use App\Attribut\RightsAttribut;
use Infinito\Attribut\RightsAttribut;
use Doctrine\Common\Collections\ArrayCollection;
use App\Attribut\RelationAttribut;
use App\Entity\Source\SourceInterface;
use App\Attribut\GrantAttribut;
use Infinito\Attribut\RelationAttribut;
use Infinito\Entity\Source\SourceInterface;
use Infinito\Attribut\GrantAttribut;
/**
* @author kevinfrantz
* @ORM\Table(name="meta_law")
* @ORM\Entity(repositoryClass="App\Repository\Meta\LawRepository")
* @ORM\Entity(repositoryClass="Infinito\Repository\Meta\LawRepository")
*/
class Law extends AbstractMeta implements LawInterface
{
@@ -26,7 +26,7 @@ class Law extends AbstractMeta implements LawInterface
protected $grant;
/**
* @ORM\OneToOne(targetEntity="App\Entity\Source\AbstractSource",cascade={"persist", "remove"})
* @ORM\OneToOne(targetEntity="Infinito\Entity\Source\AbstractSource",cascade={"persist", "remove"})
* @ORM\JoinColumn(name="source_id", referencedColumnName="id",onDelete="CASCADE")
*
* @var SourceInterface

View File

@@ -1,9 +1,9 @@
<?php
namespace App\Entity\Meta;
namespace Infinito\Entity\Meta;
use App\Attribut\RightsAttributInterface;
use App\Attribut\GrantAttributInterface;
use Infinito\Attribut\RightsAttributInterface;
use Infinito\Attribut\GrantAttributInterface;
/**
* @author kevinfrantz

View File

@@ -1,9 +1,9 @@
<?php
namespace App\Entity\Meta;
namespace Infinito\Entity\Meta;
use App\Entity\EntityInterface;
use App\Attribut\SourceAttributInterface;
use Infinito\Entity\EntityInterface;
use Infinito\Attribut\SourceAttributInterface;
/**
* Meta entities contain informations which describe sources.

View File

@@ -1,9 +1,9 @@
<?php
namespace App\Entity\Meta\Relation;
namespace Infinito\Entity\Meta\Relation;
use App\Entity\Meta\AbstractMeta;
use App\Entity\Source\SourceInterface;
use Infinito\Entity\Meta\AbstractMeta;
use Infinito\Entity\Source\SourceInterface;
use Doctrine\ORM\Mapping as ORM;
/**
@@ -12,7 +12,7 @@ use Doctrine\ORM\Mapping as ORM;
abstract class AbstractRelation extends AbstractMeta implements RelationInterface
{
/**
* @ORM\OneToOne(targetEntity="App\Entity\Source\AbstractSource",cascade={"persist", "remove"})
* @ORM\OneToOne(targetEntity="Infinito\Entity\Source\AbstractSource",cascade={"persist", "remove"})
* @ORM\JoinColumn(name="source_id", referencedColumnName="id",onDelete="CASCADE")
*
* @var SourceInterface

View File

@@ -1,10 +1,10 @@
<?php
namespace App\Entity\Meta\Relation\Member;
namespace Infinito\Entity\Meta\Relation\Member;
use App\Entity\Meta\Relation\AbstractRelation;
use App\Attribut\MembersAttribut;
use App\Attribut\MembershipsAttribut;
use Infinito\Entity\Meta\Relation\AbstractRelation;
use Infinito\Attribut\MembersAttribut;
use Infinito\Attribut\MembershipsAttribut;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;

View File

@@ -1,10 +1,10 @@
<?php
namespace App\Entity\Meta\Relation\Member;
namespace Infinito\Entity\Meta\Relation\Member;
use App\Entity\Meta\Relation\RelationInterface;
use App\Attribut\MembersAttributInterface;
use App\Attribut\MembershipsAttributInterface;
use Infinito\Entity\Meta\Relation\RelationInterface;
use Infinito\Attribut\MembersAttributInterface;
use Infinito\Attribut\MembershipsAttributInterface;
interface MemberRelationInterface extends RelationInterface, MembersAttributInterface, MembershipsAttributInterface
{

View File

@@ -1,12 +1,12 @@
<?php
namespace App\Entity\Meta\Relation\Parent;
namespace Infinito\Entity\Meta\Relation\Parent;
use App\Attribut\IdAttribut;
use App\Attribut\ParentsAttribut;
use App\Attribut\ChildsAttribut;
use Infinito\Attribut\IdAttribut;
use Infinito\Attribut\ParentsAttribut;
use Infinito\Attribut\ChildsAttribut;
use Doctrine\Common\Collections\ArrayCollection;
use App\Entity\Meta\Relation\AbstractRelation;
use Infinito\Entity\Meta\Relation\AbstractRelation;
/**
* This class represents a relation.

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Meta\Relation\Parent;
namespace Infinito\Entity\Meta\Relation\Parent;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\Collection;

View File

@@ -1,8 +1,8 @@
<?php
namespace App\Entity\Meta\Relation\Parent;
namespace Infinito\Entity\Meta\Relation\Parent;
use App\Entity\Meta\Relation\RelationInterface;
use Infinito\Entity\Meta\Relation\RelationInterface;
interface CreatorRelationInterface extends RelationInterface
{

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Meta\Relation\Parent;
namespace Infinito\Entity\Meta\Relation\Parent;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Entity\Meta\Relation\Parent;
namespace Infinito\Entity\Meta\Relation\Parent;
interface HeredityRelationInterface extends ParentRelationInterface
{

View File

@@ -1,10 +1,10 @@
<?php
namespace App\Entity\Meta\Relation\Parent;
namespace Infinito\Entity\Meta\Relation\Parent;
use App\Attribut\ParentsAttributInterface;
use App\Attribut\ChildsAttributInterface;
use App\Entity\Meta\Relation\RelationInterface;
use Infinito\Attribut\ParentsAttributInterface;
use Infinito\Attribut\ChildsAttributInterface;
use Infinito\Entity\Meta\Relation\RelationInterface;
interface ParentRelationInterface extends RelationInterface, ParentsAttributInterface, ChildsAttributInterface
{

View File

@@ -1,8 +1,8 @@
<?php
namespace App\Entity\Meta\Relation;
namespace Infinito\Entity\Meta\Relation;
use App\Entity\Meta\MetaInterface;
use Infinito\Entity\Meta\MetaInterface;
/**
* Describes a relation of a source to another source.

View File

@@ -1,33 +1,33 @@
<?php
namespace App\Entity\Meta;
namespace Infinito\Entity\Meta;
use App\Attribut\CrudAttribut;
use Infinito\Attribut\CrudAttribut;
use Doctrine\ORM\Mapping as ORM;
use Fresh\DoctrineEnumBundle\Validator\Constraints as DoctrineAssert;
use App\Attribut\LawAttribut;
use App\Attribut\GrantAttribut;
use App\Logic\Operation\OperationInterface;
use App\Attribut\ConditionAttribut;
use App\Attribut\RecieverAttribut;
use App\Attribut\LayerAttribut;
use App\Attribut\RelationAttribut;
use App\Attribut\PriorityAttribut;
use App\Entity\Source\SourceInterface;
use Infinito\Attribut\LawAttribut;
use Infinito\Attribut\GrantAttribut;
use Infinito\Logic\Operation\OperationInterface;
use Infinito\Attribut\ConditionAttribut;
use Infinito\Attribut\RecieverAttribut;
use Infinito\Attribut\LayerAttribut;
use Infinito\Attribut\RelationAttribut;
use Infinito\Attribut\PriorityAttribut;
use Infinito\Entity\Source\SourceInterface;
/**
* @todo Remove relation attribut!
*
* @author kevinfrantz
* @ORM\Table(name="meta_right")
* @ORM\Entity(repositoryClass="App\Repository\Meta\RightRepository")
* @ORM\Entity(repositoryClass="Infinito\Repository\Meta\RightRepository")
*/
class Right extends AbstractMeta implements RightInterface
{
use CrudAttribut,LawAttribut, RelationAttribut, GrantAttribut,ConditionAttribut,RecieverAttribut,LayerAttribut,PriorityAttribut;
/**
* @ORM\OneToOne(targetEntity="App\Entity\Source\AbstractSource",cascade={"persist", "remove"})
* @ORM\OneToOne(targetEntity="Infinito\Entity\Source\AbstractSource",cascade={"persist", "remove"})
* @ORM\JoinColumn(name="source_id", referencedColumnName="id",onDelete="CASCADE")
*
* @var SourceInterface The requested source to which the law applies
@@ -51,7 +51,7 @@ class Right extends AbstractMeta implements RightInterface
/**
* @ORM\Column(name="layer", type="LayerType", nullable=false)
* @DoctrineAssert\Enum(entity="App\DBAL\Types\Meta\Right\LayerType")
* @DoctrineAssert\Enum(entity="Infinito\DBAL\Types\Meta\Right\LayerType")
*
* @var string
*/
@@ -59,7 +59,7 @@ class Right extends AbstractMeta implements RightInterface
/**
* @todo Test and implement it on an correct way!
* @ORM\OneToOne(targetEntity="App\Entity\Source\AbstractSource",cascade={"persist"})
* @ORM\OneToOne(targetEntity="Infinito\Entity\Source\AbstractSource",cascade={"persist"})
* @ORM\JoinColumn(name="reciever_id", referencedColumnName="id",onDelete="CASCADE",nullable=true)
*
* @var SourceInterface|null if null then the right should apply to all sources
@@ -75,14 +75,14 @@ class Right extends AbstractMeta implements RightInterface
/**
* @ORM\Column(name="crud", type="CRUDType", nullable=false)
* @DoctrineAssert\Enum(entity="App\DBAL\Types\Meta\Right\CRUDType")
* @DoctrineAssert\Enum(entity="Infinito\DBAL\Types\Meta\Right\CRUDType")
*
* @var string
*/
protected $crud;
/**
* @ORM\OneToOne(targetEntity="App\Entity\Source\Operation\AbstractOperation",cascade={"persist"})
* @ORM\OneToOne(targetEntity="Infinito\Entity\Source\Operation\AbstractOperation",cascade={"persist"})
* @ORM\JoinColumn(name="operation_id", referencedColumnName="id",nullable=true)
*
* @var OperationInterface

View File

@@ -1,15 +1,15 @@
<?php
namespace App\Entity\Meta;
namespace Infinito\Entity\Meta;
use App\Attribut\CrudAttributInterface;
use App\Attribut\LawAttributInterface;
use App\Attribut\RecieverAttributInterface;
use App\Attribut\GrantAttributInterface;
use App\Attribut\ConditionAttributInterface;
use App\Attribut\LayerAttributInterface;
use App\Attribut\RelationAttributInterface;
use App\Attribut\PriorityAttributInterface;
use Infinito\Attribut\CrudAttributInterface;
use Infinito\Attribut\LawAttributInterface;
use Infinito\Attribut\RecieverAttributInterface;
use Infinito\Attribut\GrantAttributInterface;
use Infinito\Attribut\ConditionAttributInterface;
use Infinito\Attribut\LayerAttributInterface;
use Infinito\Attribut\RelationAttributInterface;
use Infinito\Attribut\PriorityAttributInterface;
/**
* @author kevinfrantz

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

View File

@@ -1,19 +1,19 @@
<?php
namespace App\Entity;
namespace Infinito\Entity;
use Doctrine\ORM\Mapping as ORM;
use FOS\UserBundle\Model\User as BaseUser;
use App\Attribut\SourceAttribut;
use App\Attribut\IdAttribut;
use App\Entity\Source\Complex\UserSourceInterface;
use App\Entity\Source\Complex\UserSource;
use App\Attribut\VersionAttribut;
use Infinito\Attribut\SourceAttribut;
use Infinito\Attribut\IdAttribut;
use Infinito\Entity\Source\Complex\UserSourceInterface;
use Infinito\Entity\Source\Complex\UserSource;
use Infinito\Attribut\VersionAttribut;
/**
* @author kevinfrantz
* @ORM\Table(name="user")
* @ORM\Entity(repositoryClass="App\Repository\UserRepository")
* @ORM\Entity(repositoryClass="Infinito\Repository\UserRepository")
*/
class User extends BaseUser implements UserInterface
{
@@ -21,7 +21,7 @@ class User extends BaseUser implements UserInterface
/**
* @var UserSourceInterface
* @ORM\OneToOne(targetEntity="App\Entity\Source\Complex\UserSource",cascade={"persist", "remove"})
* @ORM\OneToOne(targetEntity="Infinito\Entity\Source\Complex\UserSource",cascade={"persist", "remove"})
* @ORM\JoinColumn(name="source_user_id", referencedColumnName="id", onDelete="CASCADE")
*/
protected $source;

View File

@@ -1,10 +1,10 @@
<?php
namespace App\Entity;
namespace Infinito\Entity;
use FOS\UserBundle\Model\UserInterface as FOSUserInterface;
use App\Attribut\SourceAttributInterface;
use App\Attribut\VersionAttributInterface;
use Infinito\Attribut\SourceAttributInterface;
use Infinito\Attribut\VersionAttributInterface;
/**
* @author kevinfrantz