This implementation assumes you use the BuilderAliasProvider (getting
your menu as AppBundle:MainBuilder:build) but you could also define
it as a service and inject the event_dispatcher service as a dependency.