#1001 DDC-3005 - HydrationCompleteHandler
should accept EntityManagerInterface
instances
This commit is contained in:
parent
22e12e0043
commit
af93539576
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user