/**
  * Add a new tag to a specific article
  * @param Article $article
  * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
  */
 public function addAction(Article $article)
 {
     $tag = new Tag();
     $form = $this->createForm(new TagType(), $tag);
     if ($this->request->isMethod('POST')) {
         $form->handleRequest($this->request);
         if ($form->isValid()) {
             $slug = $this->request->get('slug');
             $article = $this->articleService->getArticleBySlug($slug);
             $tag->addArticle($article);
             $tag->setFrequency(15);
             $this->tagService->save($tag);
             return $this->redirect($this->generateUrl('tag_dashboard'));
         }
     }
     return $this->render('AppBundle:Tag:add.html.twig', array('form' => $form->createView()));
 }
 /**
  * Delete an article
  * @param Article $article
  * @return \Symfony\Component\HttpFoundation\RedirectResponse
  */
 public function deleteAction(Article $article)
 {
     $this->articleService->delete($article);
     return $this->redirect($this->generateUrl('article_dashboard'));
 }