From 09a45d38f05466e143d4c6b32cfc2510595f0390 Mon Sep 17 00:00:00 2001 From: ngaspari <33628128+ngaspari@users.noreply.github.com> Date: Tue, 12 May 2020 08:56:58 +0200 Subject: [PATCH] use interface instead of real object use EntityManagerInterface, makes life a lot easier :) --- src/Infrastructure/Application/Service/DoctrineSession.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Infrastructure/Application/Service/DoctrineSession.php b/src/Infrastructure/Application/Service/DoctrineSession.php index 0d934bf..76d5e52 100755 --- a/src/Infrastructure/Application/Service/DoctrineSession.php +++ b/src/Infrastructure/Application/Service/DoctrineSession.php @@ -4,6 +4,7 @@ use Ddd\Application\Service\TransactionalSession; use Doctrine\ORM\EntityManager; +use Doctrine\ORM\EntityManagerInterface; /** * Class DoctrineSession @@ -17,9 +18,9 @@ class DoctrineSession implements TransactionalSession private $entityManager; /** - * @param EntityManager $entityManager + * @param EntityManagerInterface $entityManager */ - public function __construct(EntityManager $entityManager) + public function __construct(EntityManagerInterface $entityManager) { $this->entityManager = $entityManager; }