@@ -9,7 +9,9 @@ Invitation model
99----------------
1010
1111First we need to add the invitation entity. An invitation is represented
12- by a unique code/identifier generated in the constructor::
12+ by a unique code/identifier generated in the constructor:
13+
14+ .. code-block :: php
1315
1416 <?php
1517 // src/AppBundle/Entity/Invitation.php
@@ -68,7 +70,9 @@ by a unique code/identifier generated in the constructor::
6870 }
6971 }
7072
71- Next we map our ``Invitation `` entity to our ``User `` with a one-to-one association::
73+ Next we map our ``Invitation `` entity to our ``User `` with a one-to-one association:
74+
75+ .. code-block :: php
7276
7377 <?php
7478 // src/AppBundel/Entity/User.php
@@ -105,7 +109,9 @@ Next we map our ``Invitation`` entity to our ``User`` with a one-to-one associat
105109 Add invitation to RegistrationFormType
106110--------------------------------------
107111
108- Override the default registration form with your own::
112+ Override the default registration form with your own:
113+
114+ .. code-block :: php
109115
110116 <?php
111117 // src/AppBundle/Form/RegistrationFormType.php
@@ -134,7 +140,9 @@ Override the default registration form with your own::
134140 }
135141 }
136142
137- Create the invitation field::
143+ Create the invitation field:
144+
145+ .. code-block :: php
138146
139147 <?php
140148 // src/AppBundle/Form/InvitationFormType.php
@@ -182,7 +190,9 @@ Create the invitation field::
182190 }
183191 }
184192
185- Create the custom data transformer::
193+ Create the custom data transformer:
194+
195+ .. code-block :: php
186196
187197 <?php
188198 // src/AppBundle/Form/DataTransformer/InvitationToCodeTransformer.php
0 commit comments