Ilyas Salikhov b603381139 1. Up min PHP version to 8.1
2. Up min Symfony verion to 5.0. Adopt code to sf 5.0+
3. Local env to run tests
4. Repare tests
2024-06-18 12:24:32 +03:00

87 lines
2.6 KiB
YAML

framework:
secret: test
csrf_protection:
enabled: false
router: { resource: "%kernel.project_dir%/config/routing.yml" }
validation: { enabled: true, enable_annotations: true }
form:
enabled: true
test: ~
default_locale: en
session:
storage_id: session.storage.mock_file
profiler: { only_exceptions: false }
annotations: ~
# Twig Configuration
twig:
debug: "%kernel.debug%"
strict_variables: "%kernel.debug%"
services:
nelmio.test.controller:
class: Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestServiceController
nelmio.test.type:
class: Nelmio\ApiDocBundle\Tests\Fixtures\Form\DependencyType
arguments:
- [foo, bar]
tags:
- { name: form.type, alias: dependency_type, extended_type: Nelmio\ApiDocBundle\Tests\Fixtures\Form\DependencyType }
nelmio_api_doc.formatter.simple_formatter:
class: "%nelmio_api_doc.formatter.simple_formatter.class%"
public: true
nelmio_api_doc.formatter.markdown_formatter:
class: "%nelmio_api_doc.formatter.markdown_formatter.class%"
public: true
parameters:
domain_prod: test.com
domain_dev: test.dev
#JMS Serializer config for testing JmsMetadataParser
jms_serializer:
handlers:
datetime:
default_format: "Y-m-dTH:i:s" # ISO8601
default_timezone: "UTC" # defaults to whatever timezone set in php.ini or via date_default_timezone_set
property_naming:
separator: _
lower_case: true
metadata:
cache: file
debug: false
file_cache:
dir: "%kernel.cache_dir%/serializer"
# Using auto-detection, the mapping files for each bundle will be
# expected in the Resources/config/serializer directory.
#
# Example:
# class: My\FooBundle\Entity\User
# expected path: @MyFooBundle/Resources/config/serializer/Entity.User.(yml|xml|php)
auto_detection: true
profiler: false
nelmio_api_doc:
sandbox:
authentication:
delivery: header
name: access_token
cache:
enabled: true
exclude_sections: ["private", "exclusive"]
swagger:
api_base_path: /api
swagger_version: 1.2
api_version: 3.14
info:
title: Nelmio Swagger
description: Testing Swagger integration.
TermsOfServiceUrl: https://github.com
contact: user@domain.tld
license: MIT
licenseUrl: http://opensource.org/licenses/MIT