diff --git a/application/src/Controller/SourceController.php b/application/src/Controller/SourceController.php index 7c72343..a919c77 100644 --- a/application/src/Controller/SourceController.php +++ b/application/src/Controller/SourceController.php @@ -3,12 +3,12 @@ namespace App\Controller; use Symfony\Component\HttpFoundation\Response; -use App\Entity\AbstractSource; +use App\Entity\Method; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\HttpFoundation\Request; use App\Creator\Factory\Template\Source\SourceTemplateFactory; use FOS\RestBundle\Controller\FOSRestController; -use App\Entity\SourceInterface; +use App\Entity\Source\SourceInterface; use App\Creator\Factory\Template\Source\SourceTemplateFormFactory; use App\Creator\Factory\Form\Source\SourceFormFactory; use Symfony\Component\HttpFoundation\RedirectResponse; diff --git a/application/src/Creator/Factory/AbstractSourceFactory.php b/application/src/Creator/Factory/AbstractSourceFactory.php index 864e430..36d9167 100644 --- a/application/src/Creator/Factory/AbstractSourceFactory.php +++ b/application/src/Creator/Factory/AbstractSourceFactory.php @@ -2,7 +2,7 @@ namespace App\Creator\Factory; -use App\Entity\SourceInterface; +use App\Entity\Source\SourceInterface; /** * @author kevinfrantz diff --git a/application/src/Creator/Factory/Template/Source/SourceTemplateFactory.php b/application/src/Creator/Factory/Template/Source/SourceTemplateFactory.php index 19f0cb3..af2b39a 100644 --- a/application/src/Creator/Factory/Template/Source/SourceTemplateFactory.php +++ b/application/src/Creator/Factory/Template/Source/SourceTemplateFactory.php @@ -2,7 +2,7 @@ namespace App\Creator\Factory\Template\Source; -use App\Entity\SourceInterface; +use App\Entity\Source\SourceInterface; use Symfony\Component\HttpFoundation\Request; use Creator\Factory\AbstractSourceFactory; diff --git a/application/src/Entity/Attribut/BlacklistAttributInterface.php b/application/src/Entity/Attribut/BlacklistAttributInterface.php index e26a198..1ca7497 100644 --- a/application/src/Entity/Attribut/BlacklistAttributInterface.php +++ b/application/src/Entity/Attribut/BlacklistAttributInterface.php @@ -1,6 +1,6 @@ isGranted($right, $layer) && $law->isGranted($userSourceNode, $layer, $right); } + public function getUser(): UserInterface + {} - public function getUser(): User - { - //FILL - } - public function setUser(User $user): void - { - //FILL - } + public function setUser(UserInterface $user): void + {} } diff --git a/application/tests/unit/Entity/UserTest.php b/application/tests/unit/Entity/UserTest.php index 8db4a8e..347f96a 100644 --- a/application/tests/unit/Entity/UserTest.php +++ b/application/tests/unit/Entity/UserTest.php @@ -5,7 +5,7 @@ namespace tests\unit\Entity; use PHPUnit\Framework\TestCase; use App\Entity\User; use App\Entity\Law; -use App\Entity\UserSource; +use App\Entity\Source\UserSource; use App\Entity\Node; /**