neomerx / json-api

Framework agnostic JSON API (jsonapi.org) implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for callables in Scheme container (not only Closures)

neomerx opened this issue · comments

Currently, mapping between Models and Schemes supports strings (class names) and Closures as shown here.

This enhancement is aimed at adding support for callables so not only Closures but static methods could be used as well (e.g. ['ClassName', 'methodName']). Unlike Closures such callables much easier to cache.