Pass configuration to directory classes as an init parameter.