nineskeletor/src/nineskeletor-1.0/config/services.yaml

137 lines
5.0 KiB
YAML
Raw Normal View History

2020-07-01 13:32:02 +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/configuration.html#application-related-configuration
parameters:
2020-07-02 15:00:08 +02:00
appEnv: '%env(resolve:APP_ENV)%'
appSecret: '%env(resolve:APP_SECRET)%'
2020-07-03 13:20:38 +02:00
appWeburl: '%env(resolve:APP_WEBURL)%'
2020-07-01 13:32:02 +02:00
appAuth: '%env(resolve:APP_AUTH)%'
2020-07-02 15:00:08 +02:00
appAlias: '%env(resolve:APP_ALIAS)%'
2020-07-01 13:32:02 +02:00
appName: '%env(resolve:APP_NAME)%'
appCron: '%env(resolve:APP_CRON)%'
2020-07-02 15:00:08 +02:00
appMasteridentity: '%env(resolve:APP_MASTERIDENTITY)%'
appMasterurl: '%env(resolve:APP_MASTERURL)%'
appMasterkey: '%env(resolve:APP_MASTERKEY)%'
databaseName: '%env(resolve:DATABASE_NAME)%'
databaseUser: '%env(resolve:DATABASE_USER)%'
databasePassword: '%env(resolve:DATABASE_PASSWORD)%'
databaseHost: '%env(resolve:DATABASE_HOST)%'
2020-07-01 13:32:02 +02:00
appMailmethod: '%env(resolve:MAILER_METHOD)%'
2020-07-02 15:00:08 +02:00
appMailurl: '%env(resolve:MAILER_URL)%'
2020-07-01 13:32:02 +02:00
appMailnoreply: '%env(resolve:MAILER_NOREPLY)%'
2020-07-02 15:00:08 +02:00
ldapModel: '%env(resolve:LDAP_MODEL)%'
2020-07-01 13:32:02 +02:00
ldapHost: '%env(resolve:LDAP_HOST)%'
ldapPort: '%env(resolve:LDAP_PORT)%'
2021-12-07 14:05:21 +01:00
ldapTls: '%env(resolve:LDAP_TLS)%'
2020-07-01 13:32:02 +02:00
ldapUser: '%env(resolve:LDAP_USER)%'
ldapPassword: '%env(resolve:LDAP_PASSWORD)%'
ldapBasedn: '%env(resolve:LDAP_BASEDN)%'
ldapUsername: '%env(resolve:LDAP_USERNAME)%'
ldapFirstname: '%env(resolve:LDAP_FIRSTNAME)%'
ldapLastname: '%env(resolve:LDAP_LASTNAME)%'
ldapEmail: '%env(resolve:LDAP_EMAIL)%'
2020-07-02 15:00:08 +02:00
ldapFiltergroup: '%env(resolve:LDAP_FILTERGROUP)%'
ldapFilteruser: '%env(resolve:LDAP_FILTERUSER)%'
2020-07-01 13:32:02 +02:00
ldapAdmins: '%env(json:LDAP_ADMINS)%'
2020-07-02 15:00:08 +02:00
2020-07-01 13:32:02 +02:00
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)%'
2020-11-23 13:08:51 +01:00
wssuse: '%env(resolve:WSS_USE)%'
wssport: '%env(resolve:WSS_PORT)%'
wssurl: 'wss://%env(resolve:APP_WEBURL)%/wss%env(resolve:APP_ALIAS)%'
2020-07-07 10:29:55 +02:00
proxyUse: '%env(resolve:PROXY_USE)%'
2020-07-02 15:00:08 +02:00
proxyHost: '%env(resolve:PROXY_HOST)%'
proxyPort: '%env(resolve:PROXY_PORT)%'
2020-07-07 10:29:55 +02:00
sondeUse: '%env(resolve:SONDE_USE)%'
2021-02-17 12:52:01 +01:00
sondeUrl: '%env(resolve:SONDE_URL)%'
2020-07-07 10:29:55 +02:00
2020-07-01 13:32:02 +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.
2020-07-07 10:29:55 +02:00
bind:
$ldapHost: '%ldapHost%'
$ldapPort: '%ldapPort%'
2021-12-07 14:05:21 +01:00
$ldapTls: '%ldapTls%'
2020-07-07 10:29:55 +02:00
$ldapUser: '%ldapUser%'
$ldapPassword: '%ldapPassword%'
$ldapBasedn: '%ldapBasedn%'
2022-03-20 21:13:59 +01:00
$wssport: '%wssport%'
2020-07-01 13:32:02 +02:00
# 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/*'
2020-07-03 13:20:38 +02:00
exclude: '../src/{DependencyInjection,Twig,Entity,Migrations,Tests,Kernel.php}'
2020-07-01 13:32:02 +02:00
# controllers are imported separately to make sure services can be injected
# as action arguments even if you don't extend any base controller class
App\Controller\:
resource: '../src/Controller'
tags: ['controller.service_arguments']
# add more service definitions when explicit configuration is needed
# please note that last definitions always *replace* previous ones
2020-11-13 17:52:57 +01:00
app.session.init:
public: true
class: App\Service\sessionInit
2022-03-20 21:13:59 +01:00
arguments: ["@service_container","@doctrine.orm.entity_manager","@session","@security.token_storage"]
2020-11-13 17:52:57 +01:00
tags:
- { name: kernel.event_listener, event: kernel.request, method: onDomainParse }
2020-07-01 13:32:02 +02:00
app.password.encoder:
public: true
class: App\Service\passwordEncoder
app.upload.listener:
public: true
class: App\Service\uploadListener
arguments: ["@doctrine.orm.entity_manager","@security.token_storage","@session","@service_container"]
tags:
- { name: kernel.event_listener, event: oneup_uploader.post_persist, method: onUpload }
app.ldap.service:
public: true
class: App\Service\ldapService
2021-12-07 14:05:21 +01:00
arguments: ["%ldapHost%","%ldapPort%","%ldapTls%","%ldapUser%","%ldapPassword%","%ldapBasedn%"]
2020-07-01 13:32:02 +02:00
app.upload.samename:
public: true
class: App\Service\uploadSamename
app.sendmail.transport:
class: Swift_SendmailTransport
public: true
arguments: ['/usr/sbin/sendmail -t']
app.mail.service:
public: true
class: App\Service\mailService
arguments: ["@mailer", "@twig"]
2020-07-03 13:20:38 +02:00
app.twig.extension:
class: App\Twig\AppExtension
calls:
- [setContainer, ["@service_container"]]
tags:
2020-11-23 13:08:51 +01:00
- { name: twig.extension }
2022-03-20 21:13:59 +01:00
app.websocket.service:
public: true
class: App\Service\messageService
arguments: ['%wssport%']