Bundle-Menus ============ The Core-Bundle contains additions to the `KnpMenuBundle`_ in the ``tpoint\CoreBundle\Menu\Builder``-Class. You can define the Bundle-Menu in the bundle-configuration (``services.yml``) .. code-block:: yaml services: #... tpoint.invoice.menu_builder: class: tpoint\InvoiceBundle\Menu\Builder arguments: ["@knp_menu.factory"] tpoint.menu.invoice: class: Knp\Menu\MenuItem factory_service: tpoint.invoice.menu_builder factory_method: appMenu tags: - { name: knp_menu.menu, alias: invoice_bundlemenu } .. code-block:: php $builder The Controller can be secured as follows: + Secured with Annotation (``@Secure(roles="ROLE_ADMIN")`` from `JMS\SecurityExtraBundle`_) + or manually with in the tpoint-permissions (``VIEW`` for each bundle from the :doc:`../extension-guide/acl-voter`) to prevent unauthorized admin-access. .. note:: Note that the URLs are only listed, if the bundle exists **and** the user can access the page (checked with ``$this->authorizationChecker->isGranted('VIEW', $routeAppName)``). Get more informations about the :doc:`../extension-guide/acl-voter`. .. _KnpMenuBundle: https://github.com/KnpLabs/KnpMenuBundle/ .. _JMSSecurityExtraBundle: http://jmsyst.com/bundles/JMSSecurityExtraBundle/master/annotations#secureparam