Skip to content

@Template annotation doesn't recognize non-html templates #602

@Jean85

Description

@Jean85

Code example:

    /**
     * @Route("/some/info", name="route_name", defaults={"_format"="json"})
     * @Method({"GET"})
     *
     * @Template()
     */
    public function someAction()
    {
            ...
    }

In this case, the @Template annotation isn't clickable, because it expects a .html.twig file, instead of the .json.twig that I'm using.

Can we fix this, please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions