summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole3/backend/config/packages
diff options
context:
space:
mode:
Diffstat (limited to 'admin/WebConsole3/backend/config/packages')
-rw-r--r--admin/WebConsole3/backend/config/packages/cache.yaml19
-rw-r--r--admin/WebConsole3/backend/config/packages/dev/jms_serializer.yaml7
-rw-r--r--admin/WebConsole3/backend/config/packages/dev/monolog.yaml19
-rw-r--r--admin/WebConsole3/backend/config/packages/dev/swiftmailer.yaml4
-rw-r--r--admin/WebConsole3/backend/config/packages/dev/web_profiler.yaml6
-rw-r--r--admin/WebConsole3/backend/config/packages/doctrine.yaml32
-rw-r--r--admin/WebConsole3/backend/config/packages/doctrine_migrations.yaml5
-rw-r--r--admin/WebConsole3/backend/config/packages/fos_oauth_server.yaml12
-rw-r--r--admin/WebConsole3/backend/config/packages/fos_rest.yaml32
-rw-r--r--admin/WebConsole3/backend/config/packages/fos_user.yaml9
-rw-r--r--admin/WebConsole3/backend/config/packages/framework.yaml18
-rw-r--r--admin/WebConsole3/backend/config/packages/jms_serializer.yaml19
-rw-r--r--admin/WebConsole3/backend/config/packages/monolog.yaml15
-rw-r--r--admin/WebConsole3/backend/config/packages/nelmio_api_doc.yaml23
-rw-r--r--admin/WebConsole3/backend/config/packages/prod/doctrine.yaml20
-rw-r--r--admin/WebConsole3/backend/config/packages/prod/jms_serializer.yaml6
-rw-r--r--admin/WebConsole3/backend/config/packages/prod/monolog.yaml23
-rw-r--r--admin/WebConsole3/backend/config/packages/prod/routing.yaml3
-rw-r--r--admin/WebConsole3/backend/config/packages/routing.yaml3
-rw-r--r--admin/WebConsole3/backend/config/packages/security.yaml59
-rw-r--r--admin/WebConsole3/backend/config/packages/sensio_framework_extra.yaml4
-rw-r--r--admin/WebConsole3/backend/config/packages/swiftmailer.yaml3
-rw-r--r--admin/WebConsole3/backend/config/packages/test/framework.yaml4
-rw-r--r--admin/WebConsole3/backend/config/packages/test/monolog.yaml7
-rw-r--r--admin/WebConsole3/backend/config/packages/test/swiftmailer.yaml2
-rw-r--r--admin/WebConsole3/backend/config/packages/test/twig.yaml2
-rw-r--r--admin/WebConsole3/backend/config/packages/test/validator.yaml3
-rw-r--r--admin/WebConsole3/backend/config/packages/test/web_profiler.yaml6
-rw-r--r--admin/WebConsole3/backend/config/packages/translation.yaml6
-rw-r--r--admin/WebConsole3/backend/config/packages/twig.yaml5
-rw-r--r--admin/WebConsole3/backend/config/packages/validator.yaml8
31 files changed, 384 insertions, 0 deletions
diff --git a/admin/WebConsole3/backend/config/packages/cache.yaml b/admin/WebConsole3/backend/config/packages/cache.yaml
new file mode 100644
index 00000000..6899b720
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/cache.yaml
@@ -0,0 +1,19 @@
+framework:
+ cache:
+ # Unique name of your app: used to compute stable namespaces for cache keys.
+ #prefix_seed: your_vendor_name/app_name
+
+ # The "app" cache stores to the filesystem by default.
+ # The data in this cache should persist between deploys.
+ # Other options include:
+
+ # Redis
+ #app: cache.adapter.redis
+ #default_redis_provider: redis://localhost
+
+ # APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues)
+ #app: cache.adapter.apcu
+
+ # Namespaced pools use the above "app" backend by default
+ #pools:
+ #my.dedicated.cache: null
diff --git a/admin/WebConsole3/backend/config/packages/dev/jms_serializer.yaml b/admin/WebConsole3/backend/config/packages/dev/jms_serializer.yaml
new file mode 100644
index 00000000..f9460410
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/dev/jms_serializer.yaml
@@ -0,0 +1,7 @@
+jms_serializer:
+ visitors:
+ json_serialization:
+ options:
+ - JSON_PRETTY_PRINT
+ - JSON_UNESCAPED_SLASHES
+ - JSON_PRESERVE_ZERO_FRACTION
diff --git a/admin/WebConsole3/backend/config/packages/dev/monolog.yaml b/admin/WebConsole3/backend/config/packages/dev/monolog.yaml
new file mode 100644
index 00000000..3b891eb4
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/dev/monolog.yaml
@@ -0,0 +1,19 @@
+monolog:
+ handlers:
+ main:
+ type: stream
+ path: "%kernel.logs_dir%/%kernel.environment%.log"
+ level: debug
+ channels: ["!event"]
+ # uncomment to get logging in your browser
+ # you may have to allow bigger header sizes in your Web server configuration
+ #firephp:
+ # type: firephp
+ # level: info
+ #chromephp:
+ # type: chromephp
+ # level: info
+ console:
+ type: console
+ process_psr_3_messages: false
+ channels: ["!event", "!doctrine", "!console"] \ No newline at end of file
diff --git a/admin/WebConsole3/backend/config/packages/dev/swiftmailer.yaml b/admin/WebConsole3/backend/config/packages/dev/swiftmailer.yaml
new file mode 100644
index 00000000..b98158ee
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/dev/swiftmailer.yaml
@@ -0,0 +1,4 @@
+# See https://symfony.com/doc/current/email/dev_environment.html
+swiftmailer:
+ # send all emails to a specific address
+ #delivery_addresses: ['me@example.com']
diff --git a/admin/WebConsole3/backend/config/packages/dev/web_profiler.yaml b/admin/WebConsole3/backend/config/packages/dev/web_profiler.yaml
new file mode 100644
index 00000000..e92166a7
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/dev/web_profiler.yaml
@@ -0,0 +1,6 @@
+web_profiler:
+ toolbar: true
+ intercept_redirects: false
+
+framework:
+ profiler: { only_exceptions: false }
diff --git a/admin/WebConsole3/backend/config/packages/doctrine.yaml b/admin/WebConsole3/backend/config/packages/doctrine.yaml
new file mode 100644
index 00000000..1db3d1d6
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/doctrine.yaml
@@ -0,0 +1,32 @@
+doctrine:
+ dbal:
+ url: '%env(resolve:DATABASE_URL)%'
+
+ # IMPORTANT: You MUST configure your server version,
+ # either here or in the DATABASE_URL env var (see .env file)
+ #server_version: '5.7'
+ orm:
+ auto_generate_proxy_classes: true
+ #naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
+ #auto_mapping: true
+ #mappings:
+ # App:
+ # is_bundle: false
+ # type: annotation
+ # dir: '%kernel.project_dir%/src/Entity'
+ # prefix: 'App\Entity'
+ # alias: App
+ entity_managers:
+ default:
+ connection: default
+ mappings:
+ OpengnsysServerBundle: ~
+ OpengnsysRepositoryBundle: ~
+ OpengnsysCoreBundle: ~
+ FOSUserBundle: ~
+ FOSOAuthServerBundle: ~
+ #OpengnsysMigrationBundle: ~
+ #og_1:
+ # connection: og_1
+ # mappings:
+ # OpengnsysMigrationBundle: ~
diff --git a/admin/WebConsole3/backend/config/packages/doctrine_migrations.yaml b/admin/WebConsole3/backend/config/packages/doctrine_migrations.yaml
new file mode 100644
index 00000000..3bf0fbca
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/doctrine_migrations.yaml
@@ -0,0 +1,5 @@
+doctrine_migrations:
+ dir_name: '%kernel.project_dir%/src/Migrations'
+ # namespace is arbitrary but should be different from App\Migrations
+ # as migrations classes should NOT be autoloaded
+ namespace: DoctrineMigrations
diff --git a/admin/WebConsole3/backend/config/packages/fos_oauth_server.yaml b/admin/WebConsole3/backend/config/packages/fos_oauth_server.yaml
new file mode 100644
index 00000000..df816682
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/fos_oauth_server.yaml
@@ -0,0 +1,12 @@
+fos_oauth_server:
+ db_driver: orm
+ client_class: Opengnsys\CoreBundle\Entity\Client
+ access_token_class: Opengnsys\CoreBundle\Entity\AccessToken
+ refresh_token_class: Opengnsys\CoreBundle\Entity\RefreshToken
+ auth_code_class: Opengnsys\CoreBundle\Entity\AuthCode
+ service:
+ user_provider: fos_user.user_provider.username
+ options:
+ access_token_lifetime: 1209600 # 336 horas
+ refresh_token_lifetime: 9209600 # aprox 106 días
+ auth_code_lifetime: 30
diff --git a/admin/WebConsole3/backend/config/packages/fos_rest.yaml b/admin/WebConsole3/backend/config/packages/fos_rest.yaml
new file mode 100644
index 00000000..ebce663d
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/fos_rest.yaml
@@ -0,0 +1,32 @@
+# Read the documentation: https://symfony.com/doc/master/bundles/FOSRestBundle/index.html
+fos_rest:
+ serializer:
+ serialize_null: true
+ param_fetcher_listener: true
+ view:
+ view_response_listener: 'force'
+ formats:
+ xml: true
+ json: true
+ templating_formats:
+ html: true
+ format_listener:
+ rules:
+ - { path: ^/, priorities: [ html, json, xml ], fallback_format: ~, prefer_extension: true }
+ exception:
+ codes:
+ 'Symfony\Component\Routing\Exception\ResourceNotFoundException': 404
+ 'Doctrine\ORM\OptimisticLockException': HTTP_CONFLICT
+ messages:
+ 'Symfony\Component\Routing\Exception\ResourceNotFoundException': true
+ allowed_methods_listener: true
+ access_denied_listener:
+ json: true
+ body_listener: true
+ body_converter:
+ enabled: true
+ validate: true
+ #array_normalizer: fos_rest.normalizer.camel_keys
+ disable_csrf_role: ROLE_API
+ routing_loader:
+ default_format: json \ No newline at end of file
diff --git a/admin/WebConsole3/backend/config/packages/fos_user.yaml b/admin/WebConsole3/backend/config/packages/fos_user.yaml
new file mode 100644
index 00000000..4e52a0a5
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/fos_user.yaml
@@ -0,0 +1,9 @@
+fos_user:
+ db_driver: orm # other valid values are 'mongodb' and 'couchdb'
+ firewall_name: main
+ user_class: Opengnsys\CoreBundle\Entity\User
+ group:
+ group_class: Opengnsys\CoreBundle\Entity\Group
+ from_email:
+ address: opengnsys@localhost.com
+ sender_name: Demo Resetting
diff --git a/admin/WebConsole3/backend/config/packages/framework.yaml b/admin/WebConsole3/backend/config/packages/framework.yaml
new file mode 100644
index 00000000..37943070
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/framework.yaml
@@ -0,0 +1,18 @@
+framework:
+ secret: '%env(APP_SECRET)%'
+ #csrf_protection: true
+ #http_method_override: true
+
+ # Enables session support. Note that the session will ONLY be started if you read or write from it.
+ # Remove or comment this section to explicitly disable session support.
+ session:
+ handler_id: null
+ cookie_secure: auto
+ cookie_samesite: lax
+
+ #esi: true
+ #fragments: true
+ php_errors:
+ log: true
+ templating:
+ engines: ['twig']
diff --git a/admin/WebConsole3/backend/config/packages/jms_serializer.yaml b/admin/WebConsole3/backend/config/packages/jms_serializer.yaml
new file mode 100644
index 00000000..a7be0ca1
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/jms_serializer.yaml
@@ -0,0 +1,19 @@
+jms_serializer:
+ visitors:
+ xml_serialization:
+ format_output: '%kernel.debug%'
+ handlers:
+ datetime:
+ default_format: "Y-m-d H:i:s" #c # ISO8601
+ default_timezone: "UTC" # defaults to whatever timezone set in php.ini or via date_default_timezone_set
+ metadata:
+ directories:
+ OpengnsysCoreBundle:
+ namespace_prefix: "Opengnsys\\CoreBundle"
+ path: "%kernel.root_dir%/../src/Opengnsys/CoreBundle/Resources/config/serializer/OpengnsysCoreBundle"
+ FOSUserBundle:
+ namespace_prefix: "FOS\\UserBundle"
+ path: "%kernel.root_dir%/../src/Opengnsys/CoreBundle/Resources/config/serializer/FOSUserBundle"
+ OpengnsysServerBundle:
+ namespace_prefix: "Opengnsys\\ServerBundle"
+ path: "%kernel.root_dir%/../src/Opengnsys/ServerBundle/Resources/config/serializer/OpengnsysServerBundle"
diff --git a/admin/WebConsole3/backend/config/packages/monolog.yaml b/admin/WebConsole3/backend/config/packages/monolog.yaml
new file mode 100644
index 00000000..f290d703
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/monolog.yaml
@@ -0,0 +1,15 @@
+monolog:
+ channels: ['og_server', 'og_migration']
+ handlers:
+ og_server:
+ type: rotating_file
+ max_files: 31
+ level: debug
+ path: '%kernel.logs_dir%/og_server.log'
+ channels: [og_server]
+ og_migration:
+ type: rotating_file
+ max_files: 31
+ level: debug
+ path: '%kernel.logs_dir%/og_migration.log'
+ channels: [og_migration] \ No newline at end of file
diff --git a/admin/WebConsole3/backend/config/packages/nelmio_api_doc.yaml b/admin/WebConsole3/backend/config/packages/nelmio_api_doc.yaml
new file mode 100644
index 00000000..eecdd4ac
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/nelmio_api_doc.yaml
@@ -0,0 +1,23 @@
+nelmio_api_doc:
+ name: Page Opengnsys API
+# exclude_sections: []
+# default_sections_opened: true
+# motd:
+# template: 'NelmioApiDocBundle::Components/motd.html.twig'
+# request_listener:
+# enabled: true
+# parameter: _doc
+# swagger:
+# api_base_path: /api
+# swagger_version: '1.2'
+# api_version: '0.1'
+# info:
+# title: Symfony2
+# description: 'My awesome Symfony2 app!'
+# TermsOfServiceUrl: null
+# contact: null
+# license: null
+# licenseUrl: null
+# cache:
+# enabled: false
+# file: '%kernel.cache_dir%/api-doc.cache'
diff --git a/admin/WebConsole3/backend/config/packages/prod/doctrine.yaml b/admin/WebConsole3/backend/config/packages/prod/doctrine.yaml
new file mode 100644
index 00000000..084f59a0
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/prod/doctrine.yaml
@@ -0,0 +1,20 @@
+doctrine:
+ orm:
+ auto_generate_proxy_classes: false
+ metadata_cache_driver:
+ type: pool
+ pool: doctrine.system_cache_pool
+ query_cache_driver:
+ type: pool
+ pool: doctrine.system_cache_pool
+ result_cache_driver:
+ type: pool
+ pool: doctrine.result_cache_pool
+
+framework:
+ cache:
+ pools:
+ doctrine.result_cache_pool:
+ adapter: cache.app
+ doctrine.system_cache_pool:
+ adapter: cache.system
diff --git a/admin/WebConsole3/backend/config/packages/prod/jms_serializer.yaml b/admin/WebConsole3/backend/config/packages/prod/jms_serializer.yaml
new file mode 100644
index 00000000..89c86c89
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/prod/jms_serializer.yaml
@@ -0,0 +1,6 @@
+jms_serializer:
+ visitors:
+ json_serialization:
+ options:
+ - JSON_UNESCAPED_SLASHES
+ - JSON_PRESERVE_ZERO_FRACTION
diff --git a/admin/WebConsole3/backend/config/packages/prod/monolog.yaml b/admin/WebConsole3/backend/config/packages/prod/monolog.yaml
new file mode 100644
index 00000000..5bcdf06e
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/prod/monolog.yaml
@@ -0,0 +1,23 @@
+monolog:
+ handlers:
+ main:
+ type: fingers_crossed
+ action_level: error
+ handler: nested
+ excluded_http_codes: [404, 405]
+ nested:
+ type: stream
+ path: "%kernel.logs_dir%/%kernel.environment%.log"
+ level: debug
+ console:
+ type: console
+ process_psr_3_messages: false
+ channels: ["!event", "!doctrine"]
+ deprecation:
+ type: stream
+ path: "%kernel.logs_dir%/%kernel.environment%.deprecations.log"
+ deprecation_filter:
+ type: filter
+ handler: deprecation
+ max_level: info
+ channels: ["php"]
diff --git a/admin/WebConsole3/backend/config/packages/prod/routing.yaml b/admin/WebConsole3/backend/config/packages/prod/routing.yaml
new file mode 100644
index 00000000..b3e6a0af
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/prod/routing.yaml
@@ -0,0 +1,3 @@
+framework:
+ router:
+ strict_requirements: null
diff --git a/admin/WebConsole3/backend/config/packages/routing.yaml b/admin/WebConsole3/backend/config/packages/routing.yaml
new file mode 100644
index 00000000..ba02e1b8
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/routing.yaml
@@ -0,0 +1,3 @@
+framework:
+ router:
+ utf8: true \ No newline at end of file
diff --git a/admin/WebConsole3/backend/config/packages/security.yaml b/admin/WebConsole3/backend/config/packages/security.yaml
new file mode 100644
index 00000000..2e233ba2
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/security.yaml
@@ -0,0 +1,59 @@
+security:
+ encoders:
+ Symfony\Component\Security\Core\User\User: plaintext
+ FOS\UserBundle\Model\UserInterface: sha512 #{ algorithm: 'bcrypt', cost: 10 }
+
+ role_hierarchy:
+ ROLE_ADMIN: [ROLE_USER]
+ ROLE_SUPER_ADMIN: [ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
+
+ providers:
+ opengnsys_userbundle:
+ id: fos_user.user_provider.username
+ firewalls:
+ ## AUTH 2.0 ##
+ oauth_token:
+ pattern: ^/oauth/v2/token
+ security: false
+
+ ## API - WEB SERVICE - REST ##
+ api_private:
+ pattern: ^/api/private
+ fos_oauth: true
+ stateless: true
+ anonymous: false
+ api:
+ pattern: ^/api
+ stateless: true
+ anonymous: true
+ ## MAIN --> WEB ./ ##
+ dev:
+ pattern: ^/(_(profiler|wdt)|css|images|js)/
+ security: false
+ main:
+ pattern: .*
+ context: user
+ form_login:
+ provider: opengnsys_userbundle
+ login_path: /login
+ use_forward: false
+ check_path: /login_check
+ failure_path: null
+ logout: true
+ #path: fos_user_security_logout
+ #target: /
+ anonymous: true
+ remember_me:
+ secret: "%secret%"
+ lifetime: 31536000 # 365 days in seconds
+ path: /
+ name: REMEMBERME_OG_MAIN
+ access_control:
+ # Auth login
+ - { path: ^/oauth/v2/auth_login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
+ # Secured part of the site
+ - { path: ^/.*, role: IS_AUTHENTICATED_ANONYMOUSLY } #ROLE_ADMIN
+ # Securet part of Api
+ - { path: ^/api/private, roles: [ IS_AUTHENTICATED_FULLY ] }
+
+
diff --git a/admin/WebConsole3/backend/config/packages/sensio_framework_extra.yaml b/admin/WebConsole3/backend/config/packages/sensio_framework_extra.yaml
new file mode 100644
index 00000000..3901c1aa
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/sensio_framework_extra.yaml
@@ -0,0 +1,4 @@
+sensio_framework_extra:
+ view: { annotations: true }
+ router: { annotations: true }
+ request: { converters: true }
diff --git a/admin/WebConsole3/backend/config/packages/swiftmailer.yaml b/admin/WebConsole3/backend/config/packages/swiftmailer.yaml
new file mode 100644
index 00000000..cae65084
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/swiftmailer.yaml
@@ -0,0 +1,3 @@
+swiftmailer:
+ url: '%env(MAILER_URL)%'
+ spool: { type: 'memory' }
diff --git a/admin/WebConsole3/backend/config/packages/test/framework.yaml b/admin/WebConsole3/backend/config/packages/test/framework.yaml
new file mode 100644
index 00000000..d051c840
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/test/framework.yaml
@@ -0,0 +1,4 @@
+framework:
+ test: true
+ session:
+ storage_id: session.storage.mock_file
diff --git a/admin/WebConsole3/backend/config/packages/test/monolog.yaml b/admin/WebConsole3/backend/config/packages/test/monolog.yaml
new file mode 100644
index 00000000..2762653c
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/test/monolog.yaml
@@ -0,0 +1,7 @@
+monolog:
+ handlers:
+ main:
+ type: stream
+ path: "%kernel.logs_dir%/%kernel.environment%.log"
+ level: debug
+ channels: ["!event"]
diff --git a/admin/WebConsole3/backend/config/packages/test/swiftmailer.yaml b/admin/WebConsole3/backend/config/packages/test/swiftmailer.yaml
new file mode 100644
index 00000000..f4380780
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/test/swiftmailer.yaml
@@ -0,0 +1,2 @@
+swiftmailer:
+ disable_delivery: true
diff --git a/admin/WebConsole3/backend/config/packages/test/twig.yaml b/admin/WebConsole3/backend/config/packages/test/twig.yaml
new file mode 100644
index 00000000..8c6e0b40
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/test/twig.yaml
@@ -0,0 +1,2 @@
+twig:
+ strict_variables: true
diff --git a/admin/WebConsole3/backend/config/packages/test/validator.yaml b/admin/WebConsole3/backend/config/packages/test/validator.yaml
new file mode 100644
index 00000000..1e5ab788
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/test/validator.yaml
@@ -0,0 +1,3 @@
+framework:
+ validation:
+ not_compromised_password: false
diff --git a/admin/WebConsole3/backend/config/packages/test/web_profiler.yaml b/admin/WebConsole3/backend/config/packages/test/web_profiler.yaml
new file mode 100644
index 00000000..03752de2
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/test/web_profiler.yaml
@@ -0,0 +1,6 @@
+web_profiler:
+ toolbar: false
+ intercept_redirects: false
+
+framework:
+ profiler: { collect: false }
diff --git a/admin/WebConsole3/backend/config/packages/translation.yaml b/admin/WebConsole3/backend/config/packages/translation.yaml
new file mode 100644
index 00000000..05a2b3d8
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/translation.yaml
@@ -0,0 +1,6 @@
+framework:
+ default_locale: en
+ translator:
+ default_path: '%kernel.project_dir%/translations'
+ fallbacks:
+ - en
diff --git a/admin/WebConsole3/backend/config/packages/twig.yaml b/admin/WebConsole3/backend/config/packages/twig.yaml
new file mode 100644
index 00000000..74562e70
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/twig.yaml
@@ -0,0 +1,5 @@
+twig:
+ default_path: '%kernel.project_dir%/templates'
+ debug: '%kernel.debug%'
+ strict_variables: '%kernel.debug%'
+ exception_controller: 'FOS\RestBundle\Controller\ExceptionController::showAction'
diff --git a/admin/WebConsole3/backend/config/packages/validator.yaml b/admin/WebConsole3/backend/config/packages/validator.yaml
new file mode 100644
index 00000000..350786a1
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/validator.yaml
@@ -0,0 +1,8 @@
+framework:
+ validation:
+ email_validation_mode: html5
+
+ # Enables validator auto-mapping support.
+ # For instance, basic validation constraints will be inferred from Doctrine's metadata.
+ #auto_mapping:
+ # App\Entity\: []