Example #1
0
 public function adminRoutes(RouteEvent $event)
 {
     $event->addData(new RouteEntry('accounts', '/accounts', "/bundles/pixiiht/template/accounts.html"));
     $event->addData(new RouteEntry('fees', '/fees', "/bundles/pixiiht/template/fees.html"));
     $event->addData(new RouteEntry('transfers', '/transfers', "/bundles/pixiiht/template/transfers.html"));
     $event->addData(new RouteEntry('payments', '/payments', "/bundles/pixiiht/template/payments.html"));
 }
Example #2
0
 public function superAdminRoutes(RouteEvent $event)
 {
     if ($this->container->get('security.authorization_checker')->isGranted('ROLE_SUPER_ADMIN')) {
         $event->addData(new RouteEntry('user', '/user', '/bundles/pixicore/templates/acl/user.html'));
         $event->addData(new RouteEntry('role', '/role', '/bundles/pixicore/templates/acl/role.html'));
         $event->addData(new RouteEntry('permission', '/permission', '/bundles/pixicore/templates/acl/permission.html'));
     }
 }
 public function adminRoutes(RouteEvent $event)
 {
     $event->addData(new RouteEntry('item', '/item', "/bundles/pixiloyaltymanager/template/item.html"));
     $event->addData(new RouteEntry('offer', '/offer', "/bundles/pixiloyaltymanager/template/offer.html"));
     $event->addData(new RouteEntry('shop', '/shop', "/bundles/pixiloyaltymanager/template/shop.html"));
 }