Skip to content

Commit 50911a3

Browse files
committed
minor #9277 [Fix] Custom FormType namespace (orions)
This PR was submitted for the master branch but it was merged into the 4.0 branch instead (closes #9277). Discussion ---------- [Fix] Custom FormType namespace Hello, With SF4 we can build bundle-less apps so `FormType` should not be in `<BundleName>\Form\Type`. best. Commits ------- 492e81a [Fix] Custom FormType namespace
2 parents 9b8bdb8 + 492e81a commit 50911a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

form/create_custom_field_type.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Defining the Field Type
1616
In order to create the custom field type, first you have to create the class
1717
representing the field. In this situation the class holding the field type
1818
will be called ``ShippingType`` and the file will be stored in the default location
19-
for form fields, which is ``<BundleName>\Form\Type``. Make sure the field extends
19+
for form fields, which is ``App\Form\Type``. Make sure the field extends
2020
:class:`Symfony\\Component\\Form\\AbstractType`::
2121

2222
// src/Form/Type/ShippingType.php

0 commit comments

Comments
 (0)