Commit 5428857a authored by Arnaud Bey's avatar Arnaud Bey
Browse files

lemma -> root

parent b6c2ddd4
......@@ -11,10 +11,9 @@ class RootController extends Controller
{
/**
* @Route("/root/{id}", name="root")
* @ParamConverter("root", class="LexiconBundle:Root")
*/
public function getInfosAction(Root $root)
{
return $this->render('MagicWordBundle:Lexicon:lemma.html.twig', array('root' => $root));
return $this->render('MagicWordBundle:Lexicon:root.html.twig', ['root' => $root]);
}
}
......@@ -14,19 +14,15 @@ use Symfony\Component\HttpFoundation\Request;
class WordController extends Controller
{
/**
* @Route("/word/{id}", name="word", requirements={
* "id": "\d+"
* })
* @ParamConverter("inflexion", class="MagicWordBundle:Lexicon\Word")
* @Route("/word/{id}", name="word", requirements={"id": "\d+"})
*/
public function getInfosAction(Word $word)
{
return $this->render('MagicWordBundle:Lexicon:word.html.twig', array('word' => $word));
return $this->render('MagicWordBundle:Lexicon:word.html.twig', ['word' => $word]);
}
/**
* @Route("/word/check/{id}", name="check_existence", options={"expose"=true})
* @ParamConverter("language", class="LexiconBundle:Language")
* @Method("POST")
*/
public function checkExistenceAction(Language $language, Request $request)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment