public function showAction(Request $request, Module $entity)
    {
        $acl = $this->get('bacon_acl.service.authorization');

        if (!$acl->authorize('module', 'SHOW')) {
            throw $this->createAccessDeniedException();
        }

        $breadcumbs = $this->container->get('bacon_breadcrumbs');

        $breadcumbs->addItem([
            'title' => 'Module',
            'route' => 'module',
        ]);

        $breadcumbs->addItem([
            'title' => 'Details',
            'route' => '',
        ]);

        $deleteForm = $this->createDeleteForm('module_delete', $entity);

        return [
            'entity'      => $entity,
            'delete_form' => $deleteForm->createView(),
        ];
    }
public function showAction(Request $request, Module $entity)
    {
        $acl = $this->get('bacon_acl.service.authorization');

        if (!$acl->authorize('module', 'SHOW')) {
            throw $this->createAccessDeniedException();
        }

        $breadcumbs = $this->container->get('bacon_breadcrumbs');

        $breadcumbs->addItem([
            'title' => 'Module',
            'route' => 'module',
        ]);

        $breadcumbs->addItem([
            'title' => 'Details',
            'route' => '',
        ]);

        $deleteForm = $this->createDeleteForm('module_delete', $entity);

        return [
            'entity'      => $entity,
            'delete_form' => $deleteForm->createView(),
        ];
    }
public function showAction ( Request $ request , Module $ entity ) { $ acl = $ this -> get ( 'bacon_acl.service.authorization' ) ; if ( ! $ acl -> authorize ( 'module' , 'SHOW' ) ) { throw $ this -> createAccessDeniedException ( ) ; } $ breadcumbs = $ this -> container -> get ( 'bacon_breadcrumbs' ) ; $ breadcumbs -> addItem ( [ 'title' => 'Module' , 'route' => 'module' , ] ) ; $ breadcumbs -> addItem ( [ 'title' => 'Details' , 'route' => '' , ] ) ; $ deleteForm = $ this -> createDeleteForm ( 'module_delete' , $ entity ) ; return [ 'entity' => $ entity , 'delete_form' => $ deleteForm -> createView ( ) , ] ; }
Finds and displays a Module entity.

@Route("/{id}", name="module_show")
@Method("GET")
@Security("has_role('ROLE_ADMIN')")
@Template()
Finds and displays a Module entity .