From 9f53628373a38206b52030a67d19694024b4b9bd Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sun, 8 Jan 2017 22:57:52 +0300 Subject: [PATCH] Code deprecations update according to https://github.com/symfony/symfony/blob/2.8/UPGRADE-2.8.md --- .../Bundle/PointToolsBundle/Controller/MainController.php | 2 +- .../Bundle/PointToolsBundle/Form/UserSearchType.php | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) 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'; - } }