2024-09-17 14:02: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/configuration.html#application-related-configuration
|
|
|
|
parameters:
|
|
|
|
appEnv: '%env(resolve:APP_ENV)%'
|
|
|
|
appSecret: '%env(resolve:APP_SECRET)%'
|
2024-09-21 12:40:18 +02:00
|
|
|
appInitpwdadmin: '%env(resolve:INITPWDADMIN)%'
|
2024-11-01 17:00:36 +01:00
|
|
|
protocole: '%env(resolve:PROTOCOLE)%'
|
2024-09-21 12:40:18 +02:00
|
|
|
|
2024-09-17 14:02:17 +02:00
|
|
|
appWeburl: '%env(resolve:APP_WEBURL)%'
|
|
|
|
appAuth: '%env(resolve:APP_AUTH)%'
|
|
|
|
appAlias: '%env(resolve:APP_ALIAS)%'
|
|
|
|
appName: '%env(resolve:APP_NAME)%'
|
|
|
|
appCron: '%env(resolve:APP_CRON)%'
|
|
|
|
|
2024-11-01 17:00:36 +01:00
|
|
|
appNinegateactivate: '%env(resolve:NINEGATE_ACTIVATE)%'
|
|
|
|
appNinegateurl: '%env(resolve:NINEGATE_URL)%'
|
|
|
|
appNinegatesecret: '%env(resolve:NINEGATE_SECRET)%'
|
|
|
|
appNinegatemasteridentity: '%env(resolve:NINEGATE_MASTERIDENTITY)%'
|
|
|
|
|
|
|
|
casHost: '%env(resolve:CAS_HOST)%'
|
|
|
|
casPort: '%env(resolve:CAS_PORT)%'
|
|
|
|
casPath: '%env(resolve:CAS_PATH)%'
|
|
|
|
casUsername: '%env(resolve:CAS_USERNAME)%'
|
|
|
|
casMail: '%env(resolve:CAS_MAIL)%'
|
|
|
|
casLastname: '%env(resolve:CAS_LASTNAME)%'
|
|
|
|
casFirstname: '%env(resolve:CAS_FIRSTNAME)%'
|
|
|
|
|
2024-09-17 14:02:17 +02:00
|
|
|
databaseName: '%env(resolve:DATABASE_NAME)%'
|
|
|
|
databaseUser: '%env(resolve:DATABASE_USER)%'
|
|
|
|
databasePassword: '%env(resolve:DATABASE_PASSWORD)%'
|
|
|
|
databaseHost: '%env(resolve:DATABASE_HOST)%'
|
|
|
|
|
|
|
|
appMailmethod: '%env(resolve:MAILER_METHOD)%'
|
|
|
|
appMailurl: '%env(resolve:MAILER_URL)%'
|
|
|
|
appMailnoreply: '%env(resolve:MAILER_NOREPLY)%'
|
|
|
|
|
|
|
|
proxyUse: '%env(resolve:PROXY_USE)%'
|
|
|
|
proxyHost: '%env(resolve:PROXY_HOST)%'
|
|
|
|
proxyPort: '%env(resolve:PROXY_PORT)%'
|
|
|
|
|
|
|
|
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,Twig,Entity,Migrations,Tests,Kernel.php}'
|
|
|
|
|
|
|
|
# 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
|
|
|
|
app.session.init:
|
|
|
|
public: true
|
|
|
|
class: App\Service\sessionInit
|
2024-10-26 12:08:33 +02:00
|
|
|
arguments: ["@doctrine.orm.entity_manager","@session",]
|
2024-09-17 14:02:17 +02:00
|
|
|
tags:
|
|
|
|
- { name: kernel.event_listener, event: kernel.request, method: onDomainParse }
|
|
|
|
|
|
|
|
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.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"]
|
|
|
|
|
|
|
|
app.twig.extension:
|
|
|
|
class: App\Twig\AppExtension
|
|
|
|
calls:
|
|
|
|
- [setContainer, ["@service_container"]]
|
|
|
|
tags:
|
|
|
|
- { name: twig.extension }
|
|
|
|
|
2024-10-26 12:08:33 +02:00
|
|
|
App\Service\UserSubscriber:
|
|
|
|
public: true
|
|
|
|
arguments: ["@doctrine.orm.entity_manager"]
|
|
|
|
tags:
|
|
|
|
- name: "doctrine.event_subscriber"
|