Application now takes config in the constructor