Use EntityManagerInterface instead of ObjectManager for ORM

This commit is contained in:
Korina Cordero 2019-03-07 02:37:14 -05:00
parent 5def677267
commit f93b675976

View file

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