Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2accbba

Browse files
committed
minor symfony#75 Add the app_ prefix to form field types to avoid collisions (mantulo)
This PR was merged into the master branch. Discussion ---------- Add the app_ prefix to form field types to avoid collisions Best Practice http://symfony.com/doc/current/best_practices/forms.html#custom-form-field-types Commits ------- 627844f Add the app_ prefix to form field types to avoid collisions
2 parents deaceb9 + 627844f commit 2accbba

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/AppBundle/Form/CommentType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ public function configureOptions(OptionsResolver $resolver)
5252
*/
5353
public function getName()
5454
{
55-
return 'comment';
55+
return 'app_comment';
5656
}
5757
}

src/AppBundle/Form/PostType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ public function configureOptions(OptionsResolver $resolver)
5959
*/
6060
public function getName()
6161
{
62-
return 'post';
62+
return 'app_post';
6363
}
6464
}

0 commit comments

Comments
 (0)