Paysera\Bundle\RestBundle\Listener\RestListener::onKernelException()increased listener priority to10. Since Symfony 3.3 the priority ofExceptionListener::onKernelExceptionwas changed to1.
\Paysera\Bundle\RestBundle\RestApi::getValidationGroups()no longer returnsnullif\Paysera\Bundle\RestBundle\RestApi::$globalValidationGroupsis empty.
- New optional bundle configuration parameter
locales
\Symfony\Component\HttpFoundation\Request::getLocalenow can return preferred locale from theAccept-Languageheader, which resolves from thelocalesparameter in the bundle configuration
- Moved
Paysera\Bundle\RestBundle\Listener\RestListener::onKernelExceptionlogging to servicePaysera\Bundle\RestBundle\Service\ExceptionLogger
Paysera\Bundle\RestBundle\RestApipropertypropertyPathConverternow has default value set toCamelCaseToSnakeCaseConverter
Paysera\Bundle\RestBundle\Entity\Errorall properties are now private instead of protectedPaysera\Bundle\RestBundle\Exception\ApiExceptionall properties are private instead of protectedPaysera\Bundle\RestBundle\Exception\ApiException7th construct argument now isviolationof typeViolation[]instead ofcodesof typestring[]- 400 error response will no longer contain
errorsproperty instead iferror_properties_codesproperty
Paysera\Bundle\RestBundle\Entity\ErrorremovederrorCodesproperty and related getters/settersPaysera\Bundle\RestBundle\Entity\ErrorremovedtoArraymethodPaysera\Bundle\RestBundle\Exception\ApiExceptionremoved property getter and setter ofcodesproperty
_formatroute attribute is no longer used to detect Request or Response format.Content-TypeorAcceptheaders should be used accordingly.
- Deprecated
_formatroute attribute. In future releases request format will be always taken fromContent-Typeheader.
- Update factory service syntax