# 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: aws_url: '%env(AWS_ENDPOINT)%' aws_public_url: '%env(AWS_ENDPOINT)%' aws_bucket: '%env(S3_PORTAL_BUCKET)%' app_url: '%env(APP_URL)%' app_domain: '%env(APP_DOMAIN)%' mercure_secret: '%env(MERCURE_JWT_SECRET)%' logos_directory: '%kernel.project_dir%/public/uploads/logos' oauth_sso_identifier: '%env(OAUTH_SSO_IDENTIFIER)%' oauth_sso_identifier_login: '%env(OAUTH_SSO_IDENTIFIER_LOGIN)%' easycheck_url: '%env(EASYCHECK_URL)%' webhook_secret: '%env(WEBHOOK_SECRET)%' 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' App\MessageHandler\NotificationMessageHandler: arguments: $appUrl: '%app_url%' App\Service\SSO\ProjectService: arguments: $appUrl: '%app_url%' $clientIdentifier: '%oauth_sso_identifier%' App\EventSubscriber\: resource: '../src/EventSubscriber/' tags: ['kernel.event_subscriber'] App\EventSubscriber\LoginSubscriber: arguments: $clientIdentifier: '%oauth_sso_identifier_login%' $easycheckUrl: '%env(EASYCHECK_URL)%' App\Service\AwsService: arguments: $awsPublicUrl: '%aws_public_url%' App\Service\OrganizationsService: arguments: $logoDirectory: '%logos_directory%' App\EventSubscriber\ScopeResolveListener: tags: - { name: kernel.event_listener, event: league.oauth2_server.event.scope_resolve, method: onScopeResolve } League\OAuth2\Server\Repositories\AccessTokenRepositoryInterface: class: App\Repository\AccessTokenRepository decorates: 'League\Bundle\OAuth2ServerBundle\Repository\AccessTokenRepository' App\Command\CreateSuperAdminCommand: arguments: $environment: '%kernel.environment%' App\EventListener\LogoutSubscriber: arguments: $easycheckUrl: '%env(EASYCHECK_URL)%' tags: - { name: kernel.event_subscriber } App\Webhook\OrganizationNotifier: arguments: $easycheckUrl: '%easycheck_url%' $webhookSecret: '%webhook_secret%'