prepare release 1.12 (#2183)

* updated dependencies (#2125)
* display application name and version in console (#2150)
This commit is contained in:
Kevin Papst
2020-12-10 16:25:14 +01:00
committed by GitHub
parent 78d8212e57
commit 26c2d5aa81
29 changed files with 2042 additions and 2376 deletions

View File

@@ -21,4 +21,5 @@ return [
Nelmio\CorsBundle\NelmioCorsBundle::class => ['all' => true],
Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true],
HandcraftedInTheAlps\RestRoutingBundle\RestRoutingBundle::class => ['all' => true],
];

View File

@@ -1,111 +1,52 @@
# TODO upgrade to 2.8
# https://github.com/FriendsOfSymfony/FOSRestBundle/releases/tag/2.8.0
fos_rest:
# disable_csrf_role: IS_AUTHENTICATED_ANONYMOUSLY
# unauthorized_challenge: null
param_fetcher_listener:
enabled: true
# force: false
# service: null
cache_dir: '%kernel.cache_dir%/fos_rest'
# allowed_methods_listener:
# enabled: false
# service: null
# TODO activate with 2.8
# routing_loader: false
routing_loader:
default_format: json
include_format: true
enabled: true
cache_dir: '%kernel.cache_dir%/fos_rest'
routing_loader: false
body_converter:
enabled: true
# validate: false
# validation_errors_argument: validationErrors
# service:
# router: router
# templating: templating
# serializer: null
# view_handler: fos_rest.view_handler.default
# inflector: fos_rest.inflector.doctrine
# validator: validator
enabled: true
serializer:
# version: null
# groups: []
serialize_null: true
serialize_null: true
view:
default_engine: twig
# force_redirects:
# name: ~
# mime_types:
# enabled: false
# service: null
# formats:
# name: ~
formats:
json: true
xml: false
# templating_formats:
# name: ~
view_response_listener:
enabled: true
# force: true
# service: null
failed_validation: 400
# empty_content: 204
# serialize_null: false
# jsonp_handler:
# callback_param: callback
# mime_type: application/javascript+jsonp
enabled: true
failed_validation: 400
exception:
enabled: true
# TODO active with 2.8
# serialize_exceptions: false
# TODO deprecated with 2.8
# https://github.com/FriendsOfSymfony/FOSRestBundle/issues/2200#issuecomment-629150462
# https://github.com/FriendsOfSymfony/FOSRestBundle/issues/2224
exception_controller: 'fos_rest.exception.controller:showAction'
enabled: true
map_exception_codes: true
serializer_error_renderer: true
serialize_exceptions: false
exception_listener: false
codes:
# 'Symfony\Component\Routing\Exception\ResourceNotFoundException': 404
# 'Doctrine\ORM\OptimisticLockException': HTTP_CONFLICT
# 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException': 400
'Symfony\Component\HttpKernel\Exception\BadRequestHttpException': 400
'App\Validator\ValidationFailedException': 400
messages:
'Symfony\Component\Routing\Exception\ResourceNotFoundException': true
'Symfony\Component\HttpKernel\Exception\NotFoundHttpException': true
'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
# service: null
# default_format: null
# throw_exception_on_unsupported_content_type: false
# decoders:
# name: ~
enabled: true
decoders:
json: fos_rest.decoder.json
array_normalizer:
service: fos_rest.normalizer.camel_keys
forms: true
service: fos_rest.normalizer.camel_keys
forms: true
format_listener:
enabled: true
# service: null
rules:
- { path: ^/api, prefer_extension: true, fallback_format: json, priorities: [ json ] }
# host: null # URL host name
# methods: null # Method for URL
# stop: false
# attributes: []
# versioning:
# enabled: false
# default_version: ~
# resolvers:
# query:
# enabled: true
# parameter_name: version
# custom_header:
# enabled: true
# header_name: X-Accept-Version
# media_type:
# enabled: true
# regex: /(v|version)=(?P<version>[0-9\.]+)/
# guessing_order:
# - query
# - custom_header
# - media_type
zone:
- { path: ^/api/* }
handcraftedinthealps_rest_routing:
routing_loader:
default_format: 'json'
prefix_methods: true
include_format: true
formats:
json: true
xml: false

View File

@@ -1,5 +1,4 @@
twig:
#paths: ['%kernel.project_dir%/templates']
debug: '%kernel.debug%'
strict_variables: '%kernel.debug%'
form_themes: