Skip to content

RestController - move custom callbacks to repository #15

@benedyktdryl

Description

@benedyktdryl
/* kind of magic - move to repo */
    private function doCustomActions(&$model)
    {
        foreach ($model->customCallbacks as $action) {
            if(method_exists($this, $action)) {
                call_user_func_array(array($this, $action), array(&$model));
            }
        }
    }

    /* move this to service or something */
    private function setCurrentUser(&$model)
    {
        $model->setUser($this->getCurrentUser());
    }

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions