[0.7.0] 2020-08-19
Added
- Support of more kind of FormError
- Removed the requirement to have CSRF protection enabled #25
- Behat test suite. Melodiia is officially battle tested! You can also use this as example!
- Add Collection model to render easily standard output with collections #12
- Add
ContextBuilderChain
class, you can now add many ContextBuilder to your code base. #32
Be careful as it MAY break the BC of your application if you redefined theSerializeOnKernelView
class - New Documentation controller, learn more in documentation or see the example in the test application
Changed
- New PHP minimum requirement is PHP 7.3
- Huge BC Break on namespaces. You need to rename all classes used to SwagIndustries instead of Biig
- BC Break: the form option
customDataMapper
is nowmelodiiaDataMapper
- BC Break: on CRUD classes. It's big changes time. So we made the security optional for crud controllers, this has a
consequence on their constructor - BC Break:
CrudableModelInterface
is nowMelodiiaModel
- The ApiType now uses a custom request handler. It makes handling api request easier and removes some code
in controllers. You should now usehandleRequest($request)
on your form. Here is a list of other changes:- An api form cannot be "not submitted" anymore after a call to
handleRequest
- In case the input data is invalid, a form error is add to the form
- There is a new optional option on the ApiType:
clear_missing
but its value is automatically guessed by default
to follow HTTP verbs.
- An api form cannot be "not submitted" anymore after a call to
- Removal of the dependency to zend json (thanks to php 7.3 upgrade)
- BC Break: the ApiResponse now contains also headers. If you do not extends another response you will need to add the missing method
- BC Break: many many many changes of namespaces because the Bridge do not exists anymore.
Removed
- BC break: the documentation is no more automatically generated. This removes a lot of configuration for Melodiia.