From a9a247ba453afffd1610e09ae088939497d7de5e Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Mon, 12 Dec 2016 20:58:01 +0300 Subject: [PATCH] PostController code quality fix. --- .../Bundle/PointToolsBundle/Controller/PostController.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Skobkin/Bundle/PointToolsBundle/Controller/PostController.php b/src/Skobkin/Bundle/PointToolsBundle/Controller/PostController.php index 97816f8..6c5d828 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Controller/PostController.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Controller/PostController.php @@ -17,8 +17,6 @@ class PostController extends Controller */ public function showAction(Post $post) { - $userApi = $this->container->get('skobkin_point_tools.api_user'); - return $this->render('SkobkinPointToolsBundle:Post:show.html.twig', [ 'post' => $this->getDoctrine()->getRepository('SkobkinPointToolsBundle:Blogs\Post')->getPostWithComments($post->getId()), ]);