Releases: nilportugues/php-api-transformer
Releases · nilportugues/php-api-transformer
1.3.0
- Transformer allows get Mappings by Class
Transformer::getMappingByClassName
and by AliasTransformer::getMappingByAlias
MappingFactory
now reads the properties for mapped classes. SeeMappingFactory::setProperties
.Mapping
class now has properties set and allows getting them usingMapping::setProperties
andMapping::getProperties
- Enhanced documentation.
- Tests for all new features.
1.2.4
- (FIX) Casting to string removed for resourceUrl
- (FIX) getResponseAdditionalLinks should not output URLs that could not be generated
1.2.3
- Mappings were not accessible.
1.2.2
- Added backslash to PHP internal functions
1.2.1
- JsonApiMapping was missing "extends ApiMapping". Silly bug...
1.2.0
- Removed the alias check. Not adding anything, but complicating serialization use cases
1.1.3
- More verbosity for same alias exception
1.1.2
- self:: methods changed to static:: to allow overiding.
1.1.1
- MappingFactory::getClassProperties from private to protected.
1.1.0
- MappingFactory now supports classes implementing the ApiMapping interface to be used as configuration.
- Mapper changed to reflect these changes.
- Strict mapping checking classes properties affects existing mappings. Properties must be explicitly declared in each mapped class. This will break framework integration plugins too (eg: Laravel Eloquent models).