nowaera/mmi-bundle

There is no license information available for the latest version (dev-master) of this package.

dev-master 2020-01-29 12:07 UTC

This package is auto-updated.

Last update: 2024-04-29 04:27:10 UTC


README

Bundle provides Symfony 5 integration into mmi-mmi package

  1. Router
    • Routes as before are using \Mmi\Mvc\RouterConfig as main route definition class
    • In order to get routes loaded, the result object needs to be registered as tagged service with tag mmi.route used, check MmiRouterCompilerPass
  2. Navigation
    • In order to attach navigation into root navigation, create event listener / subscriber and subscribe to NowaEra\MmiBundle\Event\MmiNavigationEvent which contains rootNavigation (->getRootNavigation(): NavigationConfig) and attach your custom navigation
    • Mange priority of navigation by setting up tag's priority

Tags:

  • mmi.route - \Mmi\Mvc\RouterConfig

Events:

  • NowaEra\MmiBundle\Event\MmiNavigationEvent - it's payload contains root navigation which may be extended by other navigation items