refactor to use symfony configuration component