Skip to content

Commit 1c1c0e4

Browse files
committed
[#6108] remove remaining references to getName()
1 parent 2bc4f55 commit 1c1c0e4

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

cookbook/controller/upload_file.rst

-5
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,6 @@ Then, add a new ``brochure`` field to the form that manages the ``Product`` enti
7676
'data_class' => 'AppBundle\Entity\Product',
7777
));
7878
}
79-
80-
public function getName()
81-
{
82-
return 'product';
83-
}
8479
}
8580

8681
Now, update the template that renders the form to display the new ``brochure``

cookbook/form/create_form_type_extension.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ by your extension.
7373
.. tip::
7474

7575
The value you return in the ``getExtendedType`` method corresponds
76-
to the value returned by the ``getName`` method in the form type class
77-
you wish to extend.
76+
to the fully qualified class name of the form type class you wish to
77+
extend.
7878

7979
In addition to the ``getExtendedType`` function, you will probably want
8080
to override one of the following methods:

0 commit comments

Comments
 (0)