Skip to content

Show available getters in the Latte Tracy panel #259

Description

@janbarasek

David, thank you very much for the great Tracy panel for Latte, which shows the available variables in the template. Frontend developers can then easily remove their own {dump} macro.

However, when dumping variables, I very often encounter the problem that the frontend developer does not always know what the getters are available.

For example, if a template accepts an Article variable with an App\Entity\Article entity, there is a getter for each property (for example, there is a getTitle() for the $title property), but there may be other getters that the frontend developer may not find because they do not understand PHP code and find.

I try to remove SmartObject from entities and force the use of getters, because they are safer in type and there is no magical behavior.

Thanks a lot.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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