diff --git a/src/Skobkin/Bundle/PointToolsBundle/Controller/MainController.php b/src/Skobkin/Bundle/PointToolsBundle/Controller/MainController.php index 6811185..e486635 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Controller/MainController.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Controller/MainController.php @@ -19,7 +19,7 @@ class MainController extends Controller $em = $this->getDoctrine()->getManager(); $form = $this->createForm( - new UserSearchType(), + UserSearchType::class, null, [ 'action' => $this->generateUrl('index'), diff --git a/src/Skobkin/Bundle/PointToolsBundle/Form/UserSearchType.php b/src/Skobkin/Bundle/PointToolsBundle/Form/UserSearchType.php index 57eb3dc..25b2234 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Form/UserSearchType.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Form/UserSearchType.php @@ -17,12 +17,4 @@ class UserSearchType extends AbstractType ->add('login') ; } - - /** - * @return string - */ - public function getName() - { - return 'skobkin_bundle_pointtoolsbundle_user_search'; - } }