src/Flowcode/ShopBundle/Controller/AdminWarehouseController.php
/**
     * Displays a form to create a new Warehouse entity.
     *
     * @Route("/new", name="admin_warehouse_new")
     * @Method("GET")
     * @Template()
     */
Displays a form to create a new Warehouse entity.
Displays a form to create a new Warehouse entity .
public function newAction()
    {
        $warehouse = new Warehouse();
        $form = $this->createForm(WarehouseType::class, $warehouse);
        return array(
            'warehouse' => $warehouse,
            'form' => $form->createView(),
        );
    }
public function newAction ( ) { $ warehouse = new Warehouse ( ) ; $ form = $ this -> createForm ( WarehouseType :: class , $ warehouse ) ; return array ( 'warehouse' => $ warehouse , 'form' => $ form -> createView ( ) , ) ; }
Displays a form to create a new Warehouse entity.
Displays a form to create a new Warehouse entity .