1
0
mirror of synced 2025-01-31 12:32:59 +03:00

#1001 DDC-3005 - HydrationCompleteHandler should accept EntityManagerInterface instances

This commit is contained in:
Marco Pivetta 2015-01-13 00:06:07 +01:00
parent 22e12e0043
commit af93539576

View File

@ -21,6 +21,7 @@ namespace Doctrine\ORM\Internal;
use Doctrine\Common\Persistence\Mapping\ClassMetadata;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Event\LifecycleEventArgs;
use Doctrine\ORM\Event\ListenersInvoker;
use Doctrine\ORM\Events;
@ -35,7 +36,7 @@ use Doctrine\ORM\UnitOfWork;
* @author Artur Eshenbrener <strate@yandex.ru>
* @since 2.5
*/
class HydrationCompleteHandler
final class HydrationCompleteHandler
{
/** @var \Doctrine\ORM\UnitOfWork */
private $uow;
@ -43,7 +44,7 @@ class HydrationCompleteHandler
/** @var \Doctrine\ORM\Event\ListenersInvoker */
private $listenersInvoker;
/** @var \Doctrine\ORM\EntityManager */
/** @var \Doctrine\ORM\EntityManagerInterface */
private $em;
/** @var array */
@ -54,9 +55,9 @@ class HydrationCompleteHandler
*
* @param UnitOfWork $uow
* @param \Doctrine\ORM\Event\ListenersInvoker $listenersInvoker
* @param \Doctrine\ORM\EntityManager $em
* @param \Doctrine\ORM\EntityManagerInterface $em
*/
public function __construct(UnitOfWork $uow, ListenersInvoker $listenersInvoker, EntityManager $em)
public function __construct(UnitOfWork $uow, ListenersInvoker $listenersInvoker, EntityManagerInterface $em)
{
$this->uow = $uow;
$this->listenersInvoker = $listenersInvoker;