parameters:
    jb_config.menu.provider.class: Jb\Bundle\ConfigKnpMenuBundle\Provider\ConfigurationMenuProvider

services:
    jb_config.menu.provider:
        class: %jb_config.menu.provider.class%
        arguments:
            - '@knp_menu.factory'
            - '@event_dispatcher'
            - '@security.context'
        tags:
            - { name: knp_menu.provider }

parameters:
    jb_config.menu.provider.class: Jb\Bundle\ConfigKnpMenuBundle\Provider\ConfigurationMenuProvider

services:
    jb_config.menu.provider:
        class: %jb_config.menu.provider.class%
        arguments:
            - '@knp_menu.factory'
            - '@event_dispatcher'
            - '@security.authorization_checker'
        tags:
            - { name: knp_menu.provider }

Use security.authorization_checker in menu_provider service config instead of deprecated symfony.context
Use security.authorization_checker in menu_provider service config instead of deprecated symfony.context
