- 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.
- # TMP logs ELK
- # Symfony\Bridge\Monolog\Handler\ElasticsearchLogstashHandler:
- # arguments:
- # $endpoint: "http://10.0.0.133:9200"
- # $client: '@elk_client'
- # # Level Error
- # $level: Warning
- # 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'
- - '../src/Tests/'
- # 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
- _instanceof:
- App\Service\Import\Handler\HandlerInterface:
- tags: ['app.import.handler']
- App\Service\Video\Provider\VideoProviderInterface:
- tags: [ 'app.video.provider' ]
- App\Service\FfgolfApi\Client\Client:
- bind:
- $baseUri: '%ffgolf.api.client.base_url%'
- $options: '%ffgolf.api.client.options%'
- App\Service\Content\Strategy\CalculateDuration\CalculateDurationInterface:
- tags: [ 'update.duration.method' ]
- App\Service\Content\Strategy\MainComponentByType\MainComponentByTypeInterface:
- tags: [ 'get.main.component.method' ]
- App\Service\Content\Strategy\BreadCrumb\BreadCrumbStrategyInterface:
- tags: [ 'breadcrumb.location.item.method' ]
- App\Service\ClubTournament\Search\FacetBuilderInterface:
- tags: [ 'app.club_tournament.search.facet_builder' ]
- App\Service\ClubTournament\Search\FilterInterface:
- tags: [ 'app.club_tournament.search.filter' ]
- App\Service\Component\PanelLocationResolver\PanelLocationResolverInterface:
- tags: [ 'app.component.panel_location_resolver' ]
- App\Query\Aggregation\ResultExtractor\DecoratedTermAggregationResultExtractor:
- bind:
- $innerExtractor: '@ezplatform.search.solr.query.common.aggregation_result_extractor.raw_term'
- tags:
- - { name: ezplatform.search.solr.query.content.aggregation_result_extractor }
- - { name: ezplatform.search.solr.query.location.aggregation_result_extractor }
- App\Service\Content\Grille\AbstractGrilleService:
- calls:
- - [configureService]
- # Mapping des arguments nommés
- # https://symfony.com/doc/current/service_container/autowiring.html#dealing-with-multiple-implementations-of-the-same-type
- # Le service sera injecté dès qu'un argument typé X sera nommé Y
- Solarium\Core\Client\ClientInterface $clubTournamentSolariumClient: '@solarium.client.club_tournaments'
- # Mapping type > alias
- eZ\Publish\Core\Helper\TranslationHelper: '@ezpublish.translation_helper'
- eZ\Publish\Core\Helper\FieldHelper: '@ezpublish.field_helper'
- eZ\Publish\Core\MVC\Symfony\Routing\Generator\UrlAliasGenerator: '@ezpublish.urlalias_generator'
- eZ\Publish\SPI\Persistence\Content\Handler: '@ezpublish.spi.persistence.content_handler'
- eZ\Publish\Core\FieldType\XmlText\Converter\RichText: '@ezxmltext.richtext_converter'
- App\Service\Golf\DataResolver\GolfResolverInterface:
- alias: App\Service\Golf\DataResolver\GolfResolver
- App\Service\ReferenceSetting\DataResolver\ReferenceSettingResolverInterface:
- alias: App\Service\ReferenceSetting\DataResolver\ReferenceSettingResolver
- # Services composant nécessite de définir l'accès autowiré au service registry
- eZ\Publish\Core\QueryType\QueryTypeRegistry: '@ezpublish.query_type.registry'