10000 Tweaks for #1458 · lazymanc/symfony-docs@584571f · GitHub
[go: up one dir, main page]

Skip to content

Commit 584571f

Browse files
committed
Tweaks for symfony#1458
1 parent 03c6796 commit 584571f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

cookbook/bundles/override.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,16 +101,14 @@ Forms
101101

102102
In order to override a form type, it has to be registered as a service (meaning
103103
it is tagged as "form.type"). You can then override it as you would override any
104-
service as explained in "Services & Configuration". This, of course, will only
104+
service as explained in `Services & Configuration`_. This, of course, will only
105105
work if the type is referred to by its alias rather than being instantiated,
106-
e.g.:
106+
e.g.::
107107

108-
.. code-block:: php
109108
$builder->add('name', 'custom_type');
110109

111-
rather than
110+
rather than::
112111

113-
.. code-block:: php
114112
$builder->add('name', new CustomType());
115113

116114
Validation metadata

0 commit comments

Comments
 (0)
0