Get support for KnpLabs/KnpMenuServiceProvider

If you're new to LTH, please see our FAQ for more information on what it is we do.

Support Options

Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:

View Open Issues

Take a look to see if anyone else has experienced the same issue as you and if they managed to solve it.

Open an Issue

Make sure to read any relevant guidelines for opening issues on this repo before posting a new issue.

Sponsor directly

Check out the page and see if there are any options to sponsor this project or it's developers directly.

KnpLabs/KnpMenuServiceProvider

DEPRECATED

Unfortunately we decided to not maintain this project anymore (see why). If you want to mark another package as a replacement for this one please send an email to hello@knplabs.com.

KnpMenuServiceProvider

Silex service provider for the KnpMenu library.

Build Status Latest Stable Version Latest Unstable Version Scrutinizer Code Quality

Installation

Installation is done using Composer:

$ composer require knplabs/knp-menu-silex

Usage

Register the MenuServiceProvider in your application:

use Knp\Menu\Silex\MenuServiceProvider;

$app->register(new MenuServiceProvider());

Parameters

  • knp_menu.menus (optional): an array of alias => id pair for the menu provider.
  • knp_menu.renderers (optional): an array of alias => id pair for the renderer provider.
  • knp_menu.default_renderer (optional): the alias of the default renderer (default to 'list')
  • knp_menu.template (optional): The template used by default by the TwigRenderer.

Services

  • knp_menu.factory: The menu factory (it is a router-aware one if the UrlGeneratorServiceProvider is registered)
  • knp_menu.renderer.list: The ListRenderer
  • knp_menu.renderer.twig: The TwigRenderer (only when the Twig integration is available)
  • knp_menu.menu_manipulator: The MenuManipulator
  • knp_menu.matcher: The KnpMenu Matcher
  • knp_menu.voter.route: The RouteVoter registered in the matcher. Unset it from the container to unregister it.

WARNING The Twig integration is available only when the MenuServiceProvider is registered after the TwigServiceProvider in your application.

Our Mission

We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.

Interesting Articles

Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated

p-e622a1a2