Disabling the Core Menu Providers

Disabling the Core Menu ProvidersΒΆ

To be able to use different menu providers together (the builder-service-based one, the container-based one and the convention-based one for instance), a chain provider is used. However, it is not used when only one provider is enabled to increase performance by getting rid of the wrapping. If you don't want to use the built-in providers, you can disable them through the configuration:

1
2
3
4
#app/config/config.yml
knp_menu:
    providers:
        builder_alias: false    # disable the builder-alias-based provider

Note

All providers are enabled by default.

This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.