src/Flowcode/ShopBundle/Controller/AdminWarehouseController.php
public function showAction(Warehouse $warehouse)
    {
        $editForm = $this->createForm(WarehouseType::class, $warehouse, array(
            'action' => $this->generateUrl('admin_warehouse_update', array('id' => $warehouse->getid())),
            'method' => 'PUT',
        ));
        $deleteForm = $this->createDeleteForm($warehouse->getId(), 'admin_warehouse_update');

        return array(

            'warehouse' => $warehouse,
            'edit_form' => $editForm->createView(),
            'delete_form' => $deleteForm->createView(),

        );
    }
public function showAction(Warehouse $warehouse)
    {
        $editForm = $this->createForm(WarehouseType::class, $warehouse, array(
            'action' => $this->generateUrl('admin_warehouse_update', array('id' => $warehouse->getid())),
            'method' => 'PUT',
        ));
        $deleteForm = $this->createDeleteForm($warehouse->getId(), 'admin_warehouse_update');

        return array(

            'warehouse' => $warehouse,
            'edit_form' => $editForm->createView(),
            'delete_form' => $deleteForm->createView(),

        );
    }
public function showAction ( Warehouse $ warehouse ) { $ editForm = $ this -> createForm ( WarehouseType :: class , $ warehouse , array ( 'action' => $ this -> generateUrl ( 'admin_warehouse_update' , array ( 'id' => $ warehouse -> getid ( ) ) ) , 'method' => 'PUT' , ) ) ; $ deleteForm = $ this -> createDeleteForm ( $ warehouse -> getId ( ) , 'admin_warehouse_update' ) ; return array ( 'warehouse' => $ warehouse , 'edit_form' => $ editForm -> createView ( ) , 'delete_form' => $ deleteForm -> createView ( ) , ) ; }
Finds and displays a Warehouse entity.

@Route("/{id}/show", name="admin_warehouse_show", requirements={"id"="\d+"})
@Method("GET")
@Template()
Finds and displays a Warehouse entity .