2022-04-07 11:49:17 +02:00
|
|
|
# This file is the entry point to configure your own services.
|
|
|
|
# Files in the packages/ subdirectory configure your dependencies.
|
|
|
|
|
|
|
|
# Put parameters here that don't need to change on each machine where the app is deployed
|
|
|
|
# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
|
|
|
|
parameters:
|
2022-12-13 15:46:24 +01:00
|
|
|
# Données de connexion à la base de données distante
|
|
|
|
database.dsn: "%env(resolve:DSN_REMOTE_DATABASE)%"
|
|
|
|
database.user: "%env(resolve:DB_USER)%"
|
|
|
|
database.password: "%env(resolve:DB_PASSWORD)%"
|
2022-12-09 17:31:07 +01:00
|
|
|
|
2022-12-16 15:00:14 +01:00
|
|
|
# algorythme de hashage utilisé "md5", "sha256", "haval160,4", etc.
|
|
|
|
env(HASH_ALGO_LEGACY): "sha256"
|
|
|
|
hashAlgoLegacy: '%env(resolve:HASH_ALGO_LEGACY)%'
|
|
|
|
|
2022-12-13 15:46:24 +01:00
|
|
|
# adresse du site hote
|
|
|
|
issuer_url: '%env(resolve:ISSUER_URL)%'
|
|
|
|
# adresse de hydra
|
|
|
|
hydra_admin_base_url: '%env(resolve:HYDRA_ADMIN_BASE_URL)%'
|
|
|
|
base_url: '%env(resolve:BASE_URL)%'
|
|
|
|
|
|
|
|
default_locale: '%env(DEFAULT_LOCALE)%'
|
|
|
|
env(DEFAULT_LOCALE): 'fr'
|
|
|
|
|
2022-12-16 15:00:14 +01:00
|
|
|
security_pattern: '%env(resolve:SECURITY_PATTERN)%'
|
2022-12-13 15:46:24 +01:00
|
|
|
env(APP_LOCALES): "fr,en"
|
|
|
|
locales: '%env(APP_LOCALES)%'
|
|
|
|
app.supported_locales: ~
|
2022-12-14 16:38:46 +01:00
|
|
|
|
|
|
|
env(PEPPER): "257d62c24cd352c21b51c26dba678c8ff05011a89022aec106185bf67c69aa8b"
|
|
|
|
pepper: '%env(resolve:PEPPER)%'
|
2022-04-07 11:49:17 +02:00
|
|
|
services:
|
|
|
|
# default configuration for services in *this* file
|
|
|
|
_defaults:
|
|
|
|
autowire: true # Automatically injects dependencies in your services.
|
|
|
|
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
|
|
|
|
|
|
|
|
# makes classes in src/ available to be used as services
|
|
|
|
# this creates a service per class whose id is the fully-qualified class name
|
|
|
|
App\:
|
|
|
|
resource: '../src/'
|
|
|
|
exclude:
|
|
|
|
- '../src/DependencyInjection/'
|
|
|
|
- '../src/Entity/'
|
|
|
|
- '../src/Kernel.php'
|
2022-12-09 17:31:07 +01:00
|
|
|
|
2022-12-14 16:38:46 +01:00
|
|
|
App\Security\SQLLoginUserAuthenticator:
|
2022-12-09 17:31:07 +01:00
|
|
|
arguments:
|
|
|
|
$baseUrl: '%base_url%'
|
2022-04-07 11:49:17 +02:00
|
|
|
|
2022-12-14 16:38:46 +01:00
|
|
|
App\SQLLogin\SQLLoginRequest:
|
2022-12-09 17:31:07 +01:00
|
|
|
arguments:
|
|
|
|
$config: []
|
|
|
|
$dsn: "%database.dsn%"
|
|
|
|
$user: "%database.user%"
|
|
|
|
$password: "%database.password%"
|
2022-12-13 15:46:24 +01:00
|
|
|
|
2022-12-09 17:31:07 +01:00
|
|
|
App\Hydra\Client:
|
|
|
|
arguments:
|
|
|
|
$client: '@http_client'
|
|
|
|
$hydraAdminBaseUrl: '%hydra_admin_base_url%'
|
2022-12-13 15:46:24 +01:00
|
|
|
|
|
|
|
App\EventListener\LocaleSubscriber:
|
|
|
|
arguments:
|
|
|
|
$defaultLocale: "%default_locale%"
|
2022-12-14 16:38:46 +01:00
|
|
|
|
|
|
|
App\Security\Hasher\PasswordEncoder:
|
|
|
|
arguments:
|
|
|
|
$pepper: '%pepper%'
|
2022-12-16 15:00:14 +01:00
|
|
|
$hashAlgoLegacy: '%hashAlgoLegacy%'
|
|
|
|
$securityPattern: '%security_pattern%'
|
2022-04-07 11:49:17 +02:00
|
|
|
# add more service definitions when explicit configuration is needed
|
|
|
|
# please note that last definitions always *replace* previous ones
|