That's a bug, Yaml always uses underscores and XML always uses dashes. symfony/symfony#10686