I want to use the ParamConverter in symfony2 but i keeps return exceptions.
I have this code :
/**
* @Route("/")
* @Route("/{_locale}")
* @ParamConverter("domain", class="ProdacomMainBundle:PdbDomain")
* @Template("ProdacomMainBundle:Main:index.html.twig, vars={"domain"})
*/
public function indexAction(PdbDomain $domain) {
}
The error it keeps returning :
FileLoaderLoadException: Cannot import resource "C:\htdocs\domeinbeheer\src\Prodacom\MainBundle/Controller/" from "C:/htdocs/domeinbeheer/app/configouting.yml". ([Syntax Error] Expected Doctrine\Common\Annotations\DocLexer::T_CLOSE_PARENTHESIS, got 'domain' at position 177 in method Prodacom\MainBundle\Controller\MainController::indexAction().)
And this one :
AnnotationException: [Syntax Error] Expected Doctrine\Common\Annotations\DocLexer::T_CLOSE_PARENTHESIS, got 'domain' at position 177 in method Prodacom\MainBundle\Controller\MainController::indexAction().
Any ideas ?!