...
 
Commits (2)
......@@ -63,7 +63,7 @@ class EntitySourceInjector implements EventSubscriber
}
// L'entité doit implémenter l'interface SourceAwareInterface.
if (!$entity instanceof SourceAwareInterface) {
if (!($entity instanceof SourceAwareInterface || $entity instanceof ImportAwareInterface)) {
return;
}
......
......@@ -36,10 +36,6 @@ trait SourceServiceAwareTrait
*/
public function getServiceSource() : SourceService
{
if (!$this->serviceSource){
$this->serviceSource = \Application::$container->get(SourceService::class);
}
return $this->serviceSource;
}
}
\ No newline at end of file
......@@ -36,10 +36,6 @@ trait TableServiceAwareTrait
*/
public function getServiceTable() : TableService
{
if (!$this->serviceTable){
$this->serviceTable = \Application::$container->get(TableService::class);
}
return $this->serviceTable;
}
}
\ No newline at end of file