1. Gencer Genç
  2. dbal

Commits

beberlei  committed d3c2e5e Merge

Merge pull request #340 from stefk/driver-map-getter

Added driver map getter

  • Participants
  • Parent commits ace5645, 9710201
  • Branches master

Comments (0)

Files changed (1)

File lib/Doctrine/DBAL/DriverManager.php

View file
     }
 
     /**
+     * Returns the list of supported drivers.
+     *
+     * @return array
+     */
+    public static function getAvailableDrivers()
+    {
+        return array_keys(self::$_driverMap);
+    }
+
+    /**
      * Checks the list of parameters.
      *
      * @param array $params The list of parameters.