Covered Request Management Services with Unit Tests

This commit is contained in:
Kevin Frantz
2019-02-16 08:40:42 +01:00
parent 06053c6bcf
commit d1ff628087
9 changed files with 193 additions and 4 deletions

View File

@@ -17,4 +17,4 @@ A **requested action** inhieres from **requested user** and contains a **request
## UML Class Diagram
The following diagram shows the relations between the different request layers and services:
![UML Class Diagram](.meta/uml-class-diagram.svg)
![UML Class Diagram](.meta/uml-class-diagram.svg)

View File

@@ -6,6 +6,7 @@ use App\Entity\UserInterface;
use Doctrine\ORM\EntityManager;
use Symfony\Component\Security\Core\Security;
use App\Entity\Source\AbstractSource;
use Doctrine\ORM\EntityManagerInterface;
/**
* @author kevinfrantz
@@ -25,10 +26,10 @@ final class UserSourceDirectorService implements UserSourceDirectorServiceInterf
private $security;
/**
* @param EntityManager $entityManager
* @param EntityManager $entityManagerInterface
* @param Security $security
*/
public function __construct(EntityManager $entityManager, Security $security)
public function __construct(EntityManagerInterface $entityManager, Security $security)
{
$this->entityManager = $entityManager;
$this->security = $security;