# 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: media.default_movies_dir: movies media.default_tvshows_dir: tvshows media.movies_path: '/var/download/%env(default:media.default_movies_dir:MOVIES_PATH)%' media.tvshows_path: '/var/download/%env(default:media.default_tvshows_dir:TVSHOWS_PATH)%' 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' # add more service definitions when explicit configuration is needed # please note that last definitions always *replace* previous ones App\Download\Downloader\DownloaderInterface: "@App\\Download\\Downloader\\ProcessDownloader" # Session Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler: arguments: - '%env(DATABASE_URL)%' # LDAP App\User\Framework\Security\LdapUserProvider: arguments: $userRepository: '@App\User\Framework\Repository\UserRepository' $ldap: '@Symfony\Component\Ldap\LdapInterface' $baseDn: '%env(LDAP_BASE_DN)%' $searchDn: '%env(LDAP_BIND_USER)%' $searchPassword: '%env(LDAP_BIND_PASS)%' $defaultRoles: ['ROLE_USER'] $uidKey: '%env(LDAP_UID_KEY)%' # $passwordAttribute: '%env(LDAP_PASSWORD_ATTRIBUTE)%' Symfony\Component\Ldap\LdapInterface: '@Symfony\Component\Ldap\Ldap' Symfony\Component\Ldap\Ldap: arguments: [ '@Symfony\Component\Ldap\Adapter\ExtLdap\Adapter' ] tags: - ldap Symfony\Component\Ldap\Adapter\ExtLdap\Adapter: arguments: - host: '%env(LDAP_HOST)%' port: '%env(LDAP_PORT)%' encryption: '%env(LDAP_ENCRYPTION)%' options: protocol_version: 3 referrals: false