File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1616use App \Repository \PostRepository ;
1717use App \Utils \Slugger ;
1818use Sensio \Bundle \FrameworkExtraBundle \Configuration \IsGranted ;
19- use Sensio \Bundle \FrameworkExtraBundle \Configuration \Security ;
2019use Symfony \Bundle \FrameworkBundle \Controller \AbstractController ;
2120use Symfony \Component \Form \Extension \Core \Type \SubmitType ;
2221use Symfony \Component \HttpFoundation \Request ;
3332 * See http://knpbundles.com/keyword/admin
3433 *
3534 * @Route("/admin/post")
36- * @Security("is_granted(' ROLE_ADMIN') ")
35+ * @IsGranted(" ROLE_ADMIN")
3736 *
3837 * @author Ryan Weaver <weaverryan@gmail.com>
3938 * @author Javier Eguiluz <javier.eguiluz@gmail.com>
Original file line number Diff line number Diff line change 1313
1414use App \Form \Type \ChangePasswordType ;
1515use App \Form \UserType ;
16- use Sensio \Bundle \FrameworkExtraBundle \Configuration \Security ;
16+ use Sensio \Bundle \FrameworkExtraBundle \Configuration \IsGranted ;
1717use Symfony \Bundle \FrameworkBundle \Controller \AbstractController ;
1818use Symfony \Component \HttpFoundation \Request ;
1919use Symfony \Component \HttpFoundation \Response ;
2424 * Controller used to manage current user.
2525 *
2626 * @Route("/profile")
27- * @Security("is_granted(' ROLE_USER') ")
27+ * @IsGranted(" ROLE_USER")
2828 *
2929 * @author Romain Monteil <monteil.romain@gmail.com>
3030 */
You can’t perform that action at this time.
0 commit comments