Build driverchain from doctrine config