* deactivate deprecated auto-mapping * use native month-picker with fallback on old browser * bump dependencies to new major versions * replace deprecated ARRAY column type with JSON * named arguments * nullable arguments * native lazy ghosts * update routes to use php config * disable PHP < 8.4 * use static RTL configuration * new qr code package * clear out env file * recipe updates * fix deprecations * preset new env variable if not existing * bump maria db version examples * remove deprecated api-token support * fix validator deprecations * remove timesheet category column * fix broken validator autoconfiguration * stabilize tests * fix migration syntax compatibility * fix doctrine deprecation * fix datetime format * remove constructor dependency * only include visible preferences in invoice templates * fix test container dependency * removed ProjectConstraint multi-constraint logic * allow to disable plugins in certain environments * refactor TimesheetConstraint to non-service * activate new interface methods * prevent update issues with .env * improved customer fixture * removed $user->isExportDecimal()
44 lines
1.5 KiB
YAML
44 lines
1.5 KiB
YAML
# Read the documentation: https://fosrestbundle.readthedocs.io/en/3.x/
|
|
fos_rest:
|
|
param_fetcher_listener:
|
|
enabled: true
|
|
cache_dir: '%kernel.cache_dir%/fos_rest'
|
|
routing_loader: false
|
|
body_converter:
|
|
enabled: false
|
|
serializer:
|
|
serialize_null: true
|
|
view:
|
|
formats:
|
|
json: true
|
|
xml: false
|
|
view_response_listener:
|
|
enabled: true
|
|
failed_validation: 400
|
|
exception:
|
|
enabled: true
|
|
map_exception_codes: true
|
|
serializer_error_renderer: true
|
|
codes:
|
|
'Symfony\Component\HttpKernel\Exception\BadRequestHttpException': 400
|
|
'App\Validator\ValidationFailedException': 400
|
|
'Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException': 401
|
|
'Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException': 403
|
|
'Symfony\Component\Routing\Exception\ResourceNotFoundException': 404
|
|
'Symfony\Component\HttpKernel\Exception\NotFoundHttpException': 404
|
|
'App\API\NotFoundException': 404
|
|
body_listener:
|
|
enabled: true
|
|
decoders:
|
|
json: fos_rest.decoder.jsontoform
|
|
array_normalizer:
|
|
service: fos_rest.normalizer.camel_keys
|
|
forms: true
|
|
format_listener:
|
|
enabled: true
|
|
rules:
|
|
- { path: ^/api, prefer_extension: true, fallback_format: json, priorities: [ json ] }
|
|
zone:
|
|
- { path: ^/api/* }
|
|
service:
|
|
view_handler: App\API\ViewHandler |