CoreBundle/Controller/RoleController.php
public function showAction(Role $role)
    {
        $deleteForm = $this->createDeleteForm($role);

        return array(
            'role' => $role,
            'delete_form' => $deleteForm->createView(),
        );
    }
public function showAction(Role $role)
    {
        $deleteForm = $this->createDeleteForm($role);

        return array(
            'role' => $role,
            'delete_form' => $deleteForm->createView(),
        );
    }
public function showAction ( Role $ role ) { $ deleteForm = $ this -> createDeleteForm ( $ role ) ; return array ( 'role' => $ role , 'delete_form' => $ deleteForm -> createView ( ) , ) ; }
Finds and displays a role entity.

@Route("/{id}")
@Method("GET")
@Template()
Finds and displays a role entity .