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; }