services.yaml
1 # This file is the entry point to configure your own services. 2 # Files in the packages/ subdirectory configure your dependencies. 3 4 # Put parameters here that don't need to change on each machine where the app is deployed 5 # https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration 6 parameters: 7 app.memcached.host: '%env(APP_MEMCACHED_HOST)%' 8 app.memcached.port: '%env(APP_MEMCACHED_PORT)%' 9 app.memcached.namespace: '%env(APP_MEMCACHED_NAMESPACE)%' 10 app.memcached.timeout: '%env(APP_MEMCACHED_TIMEOUT)%' 11 app.version: '%env(APP_VERSION)%' 12 app.name: '%env(APP_NAME)%' 13 app.theme: '%env(APP_THEME)%' 14 app.masters: '%env(APP_MASTERS)%' 15 app.links: '%env(APP_LINKS)%' 16 app.meta.title: '%env(APP_META_TITLE)%' 17 app.meta.description: '%env(APP_META_DESCRIPTION)%' 18 app.meta.keywords: '%env(APP_META_KEYWORDS)%' 19 app.server.online.limit: '%env(APP_SERVER_ONLINE_LIMIT)%' 20 app.server.players.limit: '%env(APP_SERVER_PLAYERS_LIMIT)%' 21 22 services: 23 # default configuration for services in *this* file 24 _defaults: 25 autowire: true # Automatically injects dependencies in your services. 26 autoconfigure: true # Automatically registers your services as commands, event subscribers, etc. 27 28 # makes classes in src/ available to be used as services 29 # this creates a service per class whose id is the fully-qualified class name 30 App\: 31 resource: '../src/' 32 exclude: 33 - '../src/DependencyInjection/' 34 - '../src/Entity/' 35 - '../src/Kernel.php' 36 37 # add more service definitions when explicit configuration is needed 38 # please note that last definitions always *replace* previous ones 39 40 App\Twig\AppExtension: 41 arguments: 42 - '@service_container' 43 tags: 44 - { name: twig.extension}