New repository constructor overload: config argument support.