aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Controller/TagController.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller/TagController.php')
-rw-r--r--src/Wallabag/CoreBundle/Controller/TagController.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/TagController.php b/src/Wallabag/CoreBundle/Controller/TagController.php
index 1a1f8c3d..e8e9ecbe 100644
--- a/src/Wallabag/CoreBundle/Controller/TagController.php
+++ b/src/Wallabag/CoreBundle/Controller/TagController.php
@@ -13,6 +13,7 @@ class TagController extends Controller
13{ 13{
14 /** 14 /**
15 * @param Request $request 15 * @param Request $request
16 * @param Entry $entry
16 * 17 *
17 * @Route("/new-tag/{entry}", requirements={"entry" = "\d+"}, name="new_tag") 18 * @Route("/new-tag/{entry}", requirements={"entry" = "\d+"}, name="new_tag")
18 * 19 *
@@ -38,13 +39,13 @@ class TagController extends Controller
38 'flashes.tag.notice.tag_added' 39 'flashes.tag.notice.tag_added'
39 ); 40 );
40 41
41 return $this->redirect($this->generateUrl('view', array('id' => $entry->getId()))); 42 return $this->redirect($this->generateUrl('view', ['id' => $entry->getId()]));
42 } 43 }
43 44
44 return $this->render('WallabagCoreBundle:Tag:new_form.html.twig', array( 45 return $this->render('WallabagCoreBundle:Tag:new_form.html.twig', [
45 'form' => $form->createView(), 46 'form' => $form->createView(),
46 'entry' => $entry, 47 'entry' => $entry,
47 )); 48 ]);
48 } 49 }
49 50
50 /** 51 /**
@@ -82,9 +83,9 @@ class TagController extends Controller
82 83
83 return $this->render( 84 return $this->render(
84 'WallabagCoreBundle:Tag:tags.html.twig', 85 'WallabagCoreBundle:Tag:tags.html.twig',
85 array( 86 [
86 'tags' => $tags, 87 'tags' => $tags,
87 ) 88 ]
88 ); 89 );
89 } 90 }
90} 91}