In MenuBundle you used foo.class not foo_class. I prefer underscore as that translates directly from the config key