original_string: 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(),
          ];
      }
code: 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(),
          ];
      }
code_tokens: 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 ( ) , ] ; }
docstring: Finds and displays a Module entity.
  
  @Route("/{id}", name="module_show")
  @Method("GET")
  @Security("has_role('ROLE_ADMIN')")
  @Template()
docstring_tokens: Finds and displays a Module entity .