Use EntityManagerInterface instead of ObjectManager for ORM
This commit is contained in:
parent
5def677267
commit
f93b675976
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue