X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=src%2FWallabag%2FCoreBundle%2FController%2FTagController.php;h=e8e9ecbee0893f2620e3191ff9ea562e67b93a85;hb=443cff98405adfa7f27b5181f4aaa29bd7d050dc;hp=1a1f8c3d3b15233fda2ae92874a7a7f5c22d9b41;hpb=77b9db87b84e20a6042444e3b18665bc66d4f1f2;p=github%2Fwallabag%2Fwallabag.git 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 { /** * @param Request $request + * @param Entry $entry * * @Route("/new-tag/{entry}", requirements={"entry" = "\d+"}, name="new_tag") * @@ -38,13 +39,13 @@ class TagController extends Controller 'flashes.tag.notice.tag_added' ); - return $this->redirect($this->generateUrl('view', array('id' => $entry->getId()))); + return $this->redirect($this->generateUrl('view', ['id' => $entry->getId()])); } - return $this->render('WallabagCoreBundle:Tag:new_form.html.twig', array( + return $this->render('WallabagCoreBundle:Tag:new_form.html.twig', [ 'form' => $form->createView(), 'entry' => $entry, - )); + ]); } /** @@ -82,9 +83,9 @@ class TagController extends Controller return $this->render( 'WallabagCoreBundle:Tag:tags.html.twig', - array( + [ 'tags' => $tags, - ) + ] ); } }