nineskeletor/config/services.yaml

318 lines
10 KiB
YAML
Executable File

parameters:
appEnv: "%env(resolve:APP_ENV)%"
appSecret: "%env(resolve:APP_SECRET)%"
appSessiontime: "%env(resolve:APP_SESSIONTIME)%"
appWeburl: "%env(resolve:APP_WEBURL)%"
appAuth: "%env(resolve:APP_AUTH)%"
appAlias: "%env(resolve:APP_ALIAS)%"
appName: "%env(resolve:APP_NAME)%"
appMasteridentity: "%env(resolve:APP_MASTERIDENTITY)%"
appModeregistration: "%env(resolve:APP_MODEREGISTRATION)%"
appAdmins: "%env(json:APP_ADMINS)%"
appModules: "%env(json:APP_MODULES)%"
appNiveau01label: "%env(resolve:APP_NIVEAU01LABEL)%"
appNiveau01labels: "%env(resolve:APP_NIVEAU01LABELS)%"
appNiveau02use: "%env(resolve:APP_NIVEAU02USE)%"
appNiveau02label: "%env(resolve:APP_NIVEAU02LABEL)%"
appNiveau02labels: "%env(resolve:APP_NIVEAU02LABELS)%"
appNiveau02mandatory: "%env(json:APP_NIVEAU02MANDATORY)%"
appNiveau03use: "%env(resolve:APP_NIVEAU03USE)%"
appNiveau03label: "%env(resolve:APP_NIVEAU03LABEL)%"
appNiveau03labels: "%env(resolve:APP_NIVEAU03LABELS)%"
appNiveau03mandatory: "%env(json:APP_NIVEAU03MANDATORY)%"
appNiveau04use: "%env(resolve:APP_NIVEAU04USE)%"
appNiveau04label: "%env(resolve:APP_NIVEAU04LABEL)%"
appNiveau04labels: "%env(resolve:APP_NIVEAU04LABELS)%"
appNiveau04mandatory: "%env(json:APP_NIVEAU04MANDATORY)%"
appNiveauupdatable: "%env(resolve:APP_NIVEAUUPDATABLE)%"
appGroupuse: "%env(resolve:APP_GROUPUSE)%"
appGroupsubmiter: "%env(json:APP_GROUPSUBMITER)%"
appAnnuscopeadmin: "%env(resolve:APP_ANNUSCOPEADMIN)%"
appAnnuscopemodo: "%env(resolve:APP_ANNUSCOPEMODO)%"
appAnnuscopemaster: "%env(resolve:APP_ANNUSCOPEMASTER)%"
appAnnuscopemanager: "%env(resolve:APP_ANNUSCOPEMANAGER)%"
appAnnuscopeuser: "%env(resolve:APP_ANNUSCOPEUSER)%"
appUserviewisvisible: "%env(resolve:APP_USERVIEWISVISIBLE)%"
appSynchro: "%env(resolve:APP_SYNCHRO)%"
appSynchroPurgeNiveau01: "%env(resolve:APP_SYNDCHROPURGENIVEAU01)%"
appSynchroPurgeNiveau02: "%env(resolve:APP_SYNDCHROPURGENIVEAU02)%"
appSynchroPurgeNiveau03: "%env(resolve:APP_SYNDCHROPURGENIVEAU03)%"
appSynchroPurgeNiveau04: "%env(resolve:APP_SYNDCHROPURGENIVEAU04)%"
appSynchroPurgeGroup: "%env(resolve:APP_SYNDCHROPURGEGROUP)%"
appSynchroPurgeUser: "%env(resolve:APP_SYNDCHROPURGEUSER)%"
databaseUrl: "%env(resolve:DATABASE_URL)%"
appMailmethod: "%env(resolve:MAILER_METHOD)%"
appMaildsn: "%env(resolve:MAILER_DSN)%"
appMailnoreply: "%env(resolve:MAILER_NOREPLY)%"
ldapHost: "%env(resolve:LDAP_HOST)%"
ldapPort: "%env(resolve:LDAP_PORT)%"
ldapUsetls: "%env(resolve:LDAP_USETLS)%"
ldapUserwriter: "%env(resolve:LDAP_USERWRITER)%"
ldapUser: "%env(resolve:LDAP_USER)%"
ldapPassword: "%env(resolve:LDAP_PASSWORD)%"
ldapBasedn: "%env(resolve:LDAP_BASEDN)%"
ldapBaseorganisation: "%env(resolve:LDAP_BASEORGANISATION)%"
ldapBaseniveau01: "%env(resolve:LDAP_BASENIVEAU01)%"
ldapBaseniveau02: "%env(resolve:LDAP_BASENIVEAU02)%"
ldapBaseniveau03: "%env(resolve:LDAP_BASENIVEAU03)%"
ldapBaseniveau04: "%env(resolve:LDAP_BASENIVEAU04)%"
ldapBasegroup: "%env(resolve:LDAP_BASEGROUP)%"
ldapBaseuser: "%env(resolve:LDAP_BASEUSER)%"
ldapUsername: "%env(resolve:LDAP_USERNAME)%"
ldapFirstname: "%env(resolve:LDAP_FIRSTNAME)%"
ldapLastname: "%env(resolve:LDAP_LASTNAME)%"
ldapEmail: "%env(resolve:LDAP_EMAIL)%"
ldapAvatar: "%env(resolve:LDAP_AVATAR)%"
ldapMemberof: "%env(resolve:LDAP_MEMBEROF)%"
ldapGroupgid: "%env(resolve:LDAP_GROUPGID)%"
ldapGroupname: "%env(resolve:LDAP_GROUPNAME)%"
ldapGroupmember: "%env(resolve:LDAP_GROUPMEMBER)%"
ldapGroupmemberisdn: "%env(resolve:LDAP_GROUPMEMBERISDN)%"
ldapFiltergroup: "%env(resolve:LDAP_FILTERGROUP)%"
ldapFilteruser: "%env(resolve:LDAP_FILTERUSER)%"
ldapAutosubmit: "%env(resolve:LDAP_AUTOSUBMIT)%"
ldapAutoupdate: "%env(resolve:LDAP_AUTOUPDATE)%"
casHost: "%env(resolve:CAS_HOST)%"
casPort: "%env(resolve:CAS_PORT)%"
casPath: "%env(resolve:CAS_PATH)%"
casUsername: "%env(resolve:CAS_USERNAME)%"
casEmail: "%env(resolve:CAS_EMAIL)%"
casLastname: "%env(resolve:CAS_LASTNAME)%"
casFirstname: "%env(resolve:CAS_FIRSTNAME)%"
casAvatar: "%env(resolve:CAS_AVATAR)%"
casNiveau01: "%env(resolve:CAS_NIVEAU01)%"
casGroup: "%env(resolve:CAS_GROUP)%"
casAutosubmit: "%env(resolve:CAS_AUTOSUBMIT)%"
casAutoupdate: "%env(resolve:CAS_AUTOUPDATE)%"
oauthClientid: "%env(resolve:OAUTH_CLIENTID)%"
oauthClientsecret: "%env(resolve:OAUTH_CLIENTSECRET)%"
oauthLoginurl: "%env(resolve:OAUTH_LOGINURL)%"
oauthLogouturl: "%env(resolve:OAUTH_LOGOUTURL)%"
oauthTokenurl: "%env(resolve:OAUTH_TOKENURL)%"
oauthUserinfo: "%env(resolve:OAUTH_USERINFO)%"
oauthUsername: "%env(resolve:OAUTH_USERNAME)%"
oauthEmail: "%env(resolve:OAUTH_EMAIL)%"
oauthLastname: "%env(resolve:OAUTH_LASTNAME)%"
oauthFirstname: "%env(resolve:OAUTH_FIRSTNAME)%"
oauthAvatar: "%env(resolve:OAUTH_AVATAR)%"
oauthNiveau01: "%env(resolve:OAUTH_NIVEAU01)%"
oauthGroup: "%env(resolve:OAUTH_GROUP)%"
oauthAutosubmit: "%env(resolve:OAUTH_AUTOSUBMIT)%"
oauthAutoupdate: "%env(resolve:OAUTH_AUTOUPDATE)%"
nineUrl: "%env(resolve:NINE_URL)%"
nineSecret: "%env(resolve:NINE_SECRET)%"
appModeregistrationterme: "%env(resolve:APP_MODEREGISTRATIONTERM)%"
proxyUse: "%env(resolve:PROXY_USE)%"
proxyHost: "%env(resolve:PROXY_HOST)%"
proxyPort: "%env(resolve:PROXY_PORT)%"
minioUrl: "%env(resolve:MINIO_URL)%"
minioKey: "%env(resolve:MINIO_KEY)%"
minioSecret: "%env(resolve:MINIO_SECRET)%"
minioBucket: "%env(resolve:MINIO_BUCKET)%"
minioRoot: "%env(resolve:MINIO_ROOT)%"
minioPathstyle: "%env(resolve:MINIO_PATH_STYLE)%"
minioSecure: "%env(resolve:MINIO_SECURE)%"
hydraLoginchallenge: "%env(resolve:HYDRA_LOGINCHALLENGE)%"
hydraLoginchallengeaccept: "%env(resolve:HYDRA_LOGINCHALLENGEACCEPT)%"
hydraConsentchallenge: "%env(resolve:HYDRA_CONSENTCHALLENGE)%"
hydraConsentchallengeaccept: "%env(resolve:HYDRA_CONSENTCHALLENGEACCEPT)%"
sondeUse: "%env(resolve:SONDE_USE)%"
sondeUrl: "%env(resolve:SONDE_URL)%"
auditUse: "%env(resolve:AUDIT_USE)%"
services:
_defaults:
autowire: true # Automatically injects dependencies in your services.
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
App\:
resource: "../src/"
exclude:
- "../src/DependencyInjection/"
- "../src/Entity/"
- "../src/Kernel.php"
App\Controller\:
resource: "../src/Controller"
tags: ["controller.service_arguments"]
Redis:
class: Redis
calls:
- connect:
- "%env(REDIS_HOST)%"
- "%env(int:REDIS_PORT)%"
Symfony\Component\HttpFoundation\Session\Storage\Handler\RedisSessionHandler:
arguments:
- "@Redis"
App\EventListener\AllSubscriber:
public: true
tags:
- name: "doctrine.event_subscriber"
App\EventListener\PurgefileSubscriber:
public: true
arguments: ['@App\Service\MinioService']
tags:
- name: "doctrine.event_subscriber"
App\EventListener\Niveau01Subscriber:
public: true
arguments: ["@doctrine.orm.entity_manager", '@App\Service\LdapService']
tags:
- name: "doctrine.event_subscriber"
App\EventListener\Niveau02Subscriber:
public: true
arguments: ["@doctrine.orm.entity_manager", '@App\Service\LdapService']
tags:
- name: "doctrine.event_subscriber"
App\EventListener\GroupSubscriber:
public: true
arguments: ["@doctrine.orm.entity_manager", '@App\Service\LdapService']
tags:
- name: "doctrine.event_subscriber"
App\EventListener\UserSubscriber:
public: true
arguments: ["@doctrine.orm.entity_manager", '@App\Service\LdapService']
tags:
- name: "doctrine.event_subscriber"
App\EventListener\UserGroupSubscriber:
public: true
arguments: ["@doctrine.orm.entity_manager", '@App\Service\LdapService']
tags:
- name: "doctrine.event_subscriber"
App\Entity\User:
public: true
arguments: ["@security.password_hasher"]
App\Command\InitCommand:
public: true
arguments: ["@service_container", "@doctrine.orm.entity_manager"]
App\Command\SetPasswordCommand:
public: true
arguments: ["@service_container", "@doctrine.orm.entity_manager"]
App\Command\CronCommand:
public: true
arguments: ["@service_container", "@doctrine.orm.entity_manager"]
App\Command\CleanCommand:
public: true
arguments: ["@service_container", "@doctrine.orm.entity_manager"]
App\Command\CleanRegistrationCommand:
public: true
arguments: ["@service_container", "@doctrine.orm.entity_manager"]
App\Command\SynchroCommand:
public: true
arguments:
[
"@service_container",
"@doctrine.orm.entity_manager",
'@App\Service\LdapService',
]
App\Twig\AppExtension:
calls:
- [setContainer, ["@service_container"]]
tags:
- { name: twig.extension }
App\Service\AppSession:
public: true
arguments:
[
"@service_container",
"@doctrine.orm.entity_manager",
"@request_stack",
"@security.token_storage",
]
tags:
- {
name: kernel.event_listener,
event: kernel.request,
method: onDomainParse,
}
App\Service\UploadListener:
public: true
arguments: ["@doctrine.orm.entity_manager"]
tags:
- {
name: kernel.event_listener,
event: oneup_uploader.post_persist,
method: onUpload,
}
App\Service\UploadSamename:
public: true
App\Service\LdapService:
public: true
arguments: ["@service_container"]
App\Service\MailService:
public: true
arguments: ["@mailer", "@twig"]
App\Service\ApiService:
public: true
App\Service\MinioService:
public: true
arguments:
[
"%kernel.project_dir%",
"%minioUrl%",
"%minioKey%",
"%minioSecret%",
"%minioBucket%",
"%minioRoot%",
"%minioPathstyle%",
"%minioSecure%",
"%kernel.environment%",
]
App\Controller\RestController:
public: true
App\Form\PagewidgetType:
arguments: ["@service_container"]
App\Form\Type\FaChoiceType:
arguments: ["%kernel.project_dir%/public/medias/icons-fa5.json"]
tags:
- { name: form.type }