Get config class from the DIC