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 16
16
use App \Repository \PostRepository ;
17
17
use App \Utils \Slugger ;
18
18
use Sensio \Bundle \FrameworkExtraBundle \Configuration \IsGranted ;
19
- use Sensio \Bundle \FrameworkExtraBundle \Configuration \Security ;
20
19
use Symfony \Bundle \FrameworkBundle \Controller \AbstractController ;
21
20
use Symfony \Component \Form \Extension \Core \Type \SubmitType ;
22
21
use Symfony \Component \HttpFoundation \Request ;
33
32
* See http://knpbundles.com/keyword/admin
34
33
*
35
34
* @Route("/admin/post")
36
- * @Security("is_granted(' ROLE_ADMIN') ")
35
+ * @IsGranted(" ROLE_ADMIN")
37
36
*
38
37
* @author Ryan Weaver <weaverryan@gmail.com>
39
38
* @author Javier Eguiluz <javier.eguiluz@gmail.com>
Original file line number Diff line number Diff line change 13
13
14
14
use App \Form \Type \ChangePasswordType ;
15
15
use App \Form \UserType ;
16
- use Sensio \Bundle \FrameworkExtraBundle \Configuration \Security ;
16
+ use Sensio \Bundle \FrameworkExtraBundle \Configuration \IsGranted ;
17
17
use Symfony \Bundle \FrameworkBundle \Controller \AbstractController ;
18
18
use Symfony \Component \HttpFoundation \Request ;
19
19
use Symfony \Component \HttpFoundation \Response ;
24
24
* Controller used to manage current user.
25
25
*
26
26
* @Route("/profile")
27
- * @Security("is_granted(' ROLE_USER') ")
27
+ * @IsGranted(" ROLE_USER")
28
28
*
29
29
* @author Romain Monteil <monteil.romain@gmail.com>
30
30
*/
You can’t perform that action at this time.
0 commit comments