/** * @param $connectionName * @return bool * @throws ValidationFailedException * @throws \QCharts\CoreBundle\Exception\TypeNotValidException */ public function validateConnection($connectionName) { $validator = new ExistenceValidator(); $validator->setKeyComparison('Connection'); $validator->setLimits(["Connection" => $this->dynamicRepo->getConnectionNames()]); $validator->setObject($connectionName); return $validator->validate(); }
/** * @return array */ public function getConnections() { return $this->dynamicRepo->getConnectionNames(); }