# 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:
    suppliers: 'cms'
    url: "url2"
    secret.token: '%env(SECRET_TOEKN)%'

    #Element actualite
    actualiteImg: 'images/actualite/'
    #Element banniere
    banniere: 'images/banniere/'
    #Element graphique
    elemGraph: 'images/elemgraph/'
    #Element produit
    produitImg: 'images/produit/'
    #Produit véhicule
    produitV: 'images/imgVehicule/'
    #Element produit
    galerie: 'images/galerie/'
    #Element produit
    elemPart: 'images/partenaire/'
    #Element album
    albumImg: 'images/album/'
    catAlbumImg: 'images/catAlbm/'
    #Marque
    marque: 'images/marque/'
    #partenaire
    partenaire: 'images/partenaire/'
    #sommaire
    sommaire: 'images/sommaire/'
    #document
    document: 'images/documents/'
    #equipe
    equipe: 'images/equipe/'
    #admin
    admin: 'images/admin/'
    #import
    import: 'images/import/'
    #blogarticle
    articleBlog_images: 'images/blog/'
    #cartes
    carte_images: 'images/cartes/carteImage/'
    #carte item
    carteItem_images: 'images/cartes/carteImageItems/'
    #coordonnees
    coordonnees: 'images/coordonnees/'
    #beforeAfter
    beforeAfter: 'images/beforeAfter/'

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/User/'
            - '../src/Kernel.php'

    App\User\Repository\ModuleRepository:
        tags: ['doctrine.repository_service']

    App\User\Repository\RoleRepository:
        tags: ['doctrine.repository_service']

    App\Controller\VariableGlobal\AppExtension:
        tags: [{ name: twig.extension }]
    
    App\Controller\VariableGlobal\LoadGlobalMeta:
        tags: [{ name: twig.extension }]

    App\Controller\ReplaceContent\Replace:
        tags: ['twig.extension']
    
    App\Controller\VariableGlobal\StatsController:
        tags: [{ name: twig.extension }]

    App\EntityListener\EasyAdminImageEventListener:
        tags:
            - { name: kernel.event_subscriber }

    App\EntityListener\ClientVisitListener:
        tags:
            - { name: 'kernel.event_listener', event: 'kernel.request', method: 'onKernelRequest' }

    gedmo.listener.sluggable:
        class: Gedmo\Sluggable\SluggableListener
        tags:
            - { name: doctrine.event_subscriber, connection: default }
        calls:
            - [ setAnnotationReader, [ "@annotation_reader" ] ]

    gedmo.listener.sortable:
        class: Gedmo\Sortable\SortableListener
        tags:
            - { name: doctrine.event_subscriber, connection: default }
        calls:
            - [ setAnnotationReader, [ "@annotation_reader" ] ]

    # add more service definitions when explicit configuration is needed
    # please note that last definitions always *replace* previous ones
