PostController code quality fix.

This commit is contained in:
Alexey Skobkin 2016-12-12 20:58:01 +03:00
parent 7776b1ac74
commit a9a247ba45

View file

@ -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()),
]);