From f93b675976f0d85483f3e9b89a9cd71f3a1721e7 Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Thu, 7 Mar 2019 02:37:14 -0500 Subject: [PATCH] Use EntityManagerInterface instead of ObjectManager for ORM --- src/Service/KMLFileImporter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Service/KMLFileImporter.php b/src/Service/KMLFileImporter.php index 9e996230..ac040c35 100644 --- a/src/Service/KMLFileImporter.php +++ b/src/Service/KMLFileImporter.php @@ -6,7 +6,7 @@ use XMLReader; use App\Entity\SupportedArea; -use Doctrine\Common\Persistence\ObjectManager; +use Doctrine\ORM\EntityManagerInterface; use CrEOF\Spatial\PHP\Types\Geometry\Polygon; use CrEOF\Spatial\PHP\Types\Geometry\Point; @@ -16,7 +16,7 @@ class KMLFileImporter { protected $em; - public function __construct(ObjectManager $em) + public function __construct(EntityManagerInterface $em) { $this->em = $em; }