filename)) { throw FileNotFound::new($this->filename); } $params = include $this->filename; if ($params instanceof EntityManagerInterface) { return $params; } if ($params instanceof EntityManagerLoader) { return $params->getEntityManager(); } throw InvalidConfiguration::invalidArrayConfiguration(); } }