Skip to content

Change signature of renderResource #191

@bakura10

Description

@bakura10

After a bit of usage, I've realized that the order of parameters is a bit inconsistent. When creating a a ResourceViewModel, it is:

return new ResourceViewModel(['user' => $user], ['template' => 'user']);

However the resourceRender helper work like this:

$this->renderResource('templateName', ['user' => $user]);

I'm considering changing that for 0.5 to keep the same order. What do you think @grizzm0 ?

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