TEXT 68
Untitled Guest on 4th January 2022 12:38:25 PM
  1. services:
  2.     # default configuration for services in *this* file
  3.     _defaults:
  4.         autowire: true      # Automatically injects dependencies in your services.
  5.         autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
  6.  
  7. # TMP logs ELK
  8. #    Symfony\Bridge\Monolog\Handler\ElasticsearchLogstashHandler:
  9. #        arguments:
  10. #            $endpoint: "http://10.0.0.133:9200"
  11. #            $client: '@elk_client'
  12. #            # Level Error
  13. #            $level: Warning
  14.  
  15.     # makes classes in src/ available to be used as services
  16.     # this creates a service per class whose id is the fully-qualified class name
  17.     App\:
  18.         resource: '../src/'
  19.         exclude:
  20.             - '../src/DependencyInjection/'
  21.             - '../src/Entity/'
  22.             - '../src/Kernel.php'
  23.             - '../src/Tests/'
  24.  
  25.     # controllers are imported separately to make sure services can be injected
  26.     # as action arguments even if you don't extend any base controller class
  27.     App\Controller\:
  28.         resource: '../src/Controller/'
  29.         tags: ['controller.service_arguments']
  30.  
  31.     # add more service definitions when explicit configuration is needed
  32.     # please note that last definitions always *replace* previous ones
  33.  
  34.     _instanceof:
  35.         App\Service\Import\Handler\HandlerInterface:
  36.             tags: ['app.import.handler']
  37.         App\Service\Video\Provider\VideoProviderInterface:
  38.             tags: [ 'app.video.provider' ]
  39.         App\Service\FfgolfApi\Client\Client:
  40.             bind:
  41.                 $baseUri: '%ffgolf.api.client.base_url%'
  42.                 $options: '%ffgolf.api.client.options%'
  43.         App\Service\Content\Strategy\CalculateDuration\CalculateDurationInterface:
  44.             tags: [ 'update.duration.method' ]
  45.         App\Service\Content\Strategy\MainComponentByType\MainComponentByTypeInterface:
  46.             tags: [ 'get.main.component.method' ]
  47.         App\Service\Content\Strategy\BreadCrumb\BreadCrumbStrategyInterface:
  48.             tags: [ 'breadcrumb.location.item.method' ]
  49.         App\Service\ClubTournament\Search\FacetBuilderInterface:
  50.             tags: [ 'app.club_tournament.search.facet_builder' ]
  51.         App\Service\ClubTournament\Search\FilterInterface:
  52.             tags: [ 'app.club_tournament.search.filter' ]
  53.         App\Service\Component\PanelLocationResolver\PanelLocationResolverInterface:
  54.             tags: [ 'app.component.panel_location_resolver' ]
  55.         App\Query\Aggregation\ResultExtractor\DecoratedTermAggregationResultExtractor:
  56.             bind:
  57.                 $innerExtractor: '@ezplatform.search.solr.query.common.aggregation_result_extractor.raw_term'
  58.             tags:
  59.                 - { name: ezplatform.search.solr.query.content.aggregation_result_extractor }
  60.                 - { name: ezplatform.search.solr.query.location.aggregation_result_extractor }
  61.         App\Service\Content\Grille\AbstractGrilleService:
  62.             calls:
  63.                 - [configureService]
  64.  
  65.     # Mapping des arguments nommés
  66.     # https://symfony.com/doc/current/service_container/autowiring.html#dealing-with-multiple-implementations-of-the-same-type
  67.     # Le service sera injecté dès qu'un argument typé X sera nommé Y
  68.     Solarium\Core\Client\ClientInterface $clubTournamentSolariumClient: '@solarium.client.club_tournaments'
  69.  
  70.     # Mapping type > alias
  71.     eZ\Publish\Core\Helper\TranslationHelper: '@ezpublish.translation_helper'
  72.     eZ\Publish\Core\Helper\FieldHelper: '@ezpublish.field_helper'
  73.     eZ\Publish\Core\MVC\Symfony\Routing\Generator\UrlAliasGenerator: '@ezpublish.urlalias_generator'
  74.     eZ\Publish\SPI\Persistence\Content\Handler: '@ezpublish.spi.persistence.content_handler'
  75.     eZ\Publish\Core\FieldType\XmlText\Converter\RichText: '@ezxmltext.richtext_converter'
  76.     App\Service\Golf\DataResolver\GolfResolverInterface:
  77.         alias: App\Service\Golf\DataResolver\GolfResolver
  78.     App\Service\ReferenceSetting\DataResolver\ReferenceSettingResolverInterface:
  79.         alias: App\Service\ReferenceSetting\DataResolver\ReferenceSettingResolver
  80.     # Services composant nécessite de définir l'accès autowiré au service registry
  81.     eZ\Publish\Core\QueryType\QueryTypeRegistry: '@ezpublish.query_type.registry'

CodePaste est fait pour le code source et le texte général de débogage.

Connectez-vous ou Enregistrez-vous pour éditer, supprimer et suivre vos pastes et bien plus.

Paste brut

Connectez-vous ou Enregistrez-vous pour éditer ou dupliquer ce paste. C'est gratuit !