/** * @param \Application $app * @return \Symfony\Component\HttpFoundation\JsonResponse * @throws \Doctrine\DBAL\DBALException */ public function get(\Application $app) { $statement = $app->doctrine()->prepare("SHOW DATABASES"); $statement->execute(); return $app->json($statement->fetchAll(\PDO::FETCH_COLUMN)); }