From 860a3b33593b893abc62c993fbbc46733a8233d5 Mon Sep 17 00:00:00 2001 From: Florent DESPIERRES Date: Fri, 16 Feb 2018 09:27:00 +0100 Subject: [PATCH] [Fix] Custom FormType namespace --- form/create_custom_field_type.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/form/create_custom_field_type.rst b/form/create_custom_field_type.rst index 7ab47bfc9cf..3a5919e4cb9 100644 --- a/form/create_custom_field_type.rst +++ b/form/create_custom_field_type.rst @@ -16,7 +16,7 @@ Defining the Field Type In order to create the custom field type, first you have to create the class representing the field. In this situation the class holding the field type will be called ``ShippingType`` and the file will be stored in the default location -for form fields, which is ``\Form\Type``. Make sure the field extends +for form fields, which is ``App\Form\Type``. Make sure the field extends :class:`Symfony\\Component\\Form\\AbstractType`:: // src/Form/Type/ShippingType.php