add doc for twig phptypes and route parameter