Skip to content

Refactor annotations #287

@mssimi

Description

@mssimi

Hey, is it possible to refactor Template() annotation to render method in Symfony?

Before

/**
 * @Template()
 * @Route("/index", name="_index")
 */
public function indexAction()
{
    return [];
}

After

/**
 * @Route("/index", name="_index")
 */
public function indexAction()
{
    return $this->render('index.html.twig');
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions