Skip to content

Resource informatin now uses TypeMap to resolve resource types

Choose a tag to compare

@stephanschuler stephanschuler released this 13 Aug 12:42
80831a6

Previously the GenericResourceInformation deferred subpackage and type
name from model class names.

The ExposableTypeMap class already holds a mapping form PHP class names
to json api types. Those types come partially from an algorithm similar
to the one used in the Generic Resource Information. On top of that,
there's a YAML configuration here as well as others such as PHP
annotations provided by this package.

The GenericResourceInformation now just fetches the already known type
strings from the ExposableTypeMap object.