Download the PHP package knplabs/knp-menu-silex without Composer
On this page you can find all versions of the php package knplabs/knp-menu-silex. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download knplabs/knp-menu-silex
More information about knplabs/knp-menu-silex
Files in knplabs/knp-menu-silex
Download knplabs/knp-menu-silex
More information about knplabs/knp-menu-silex
Files in knplabs/knp-menu-silex
Vendor knplabs
Package knp-menu-silex
Short Description Integration of knplabs/knp-menu into Silex
License MIT
Homepage https://knplabs.com
Package knp-menu-silex
Short Description Integration of knplabs/knp-menu into Silex
License MIT
Homepage https://knplabs.com
Please rate this library. Is it a good library?
Informations about the package knp-menu-silex
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 [email protected].
KnpMenuServiceProvider
Silex service provider for the KnpMenu library.
Installation
Installation is done using Composer:
Usage
Register the MenuServiceProvider in your application:
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.
All versions of knp-menu-silex with dependencies
PHP Build Version
Package Version
The package knplabs/knp-menu-silex contains the following files
Loading the files please wait ....