parameters:

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'

    App\Twig\DisplayNameExtension:
        tags: ['twig.extension']
    App\Twig\ViteAssetExtension:
        tags: [ 'twig.extension' ]

    App\Repository\ResetPasswordRequestRepository:
        autowire: true
        autoconfigure: true

    # ✅ Désactivation du HtmlErrorRenderer qui tente d’inclure des fichiers .styles foireux
    Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer: ~

    App\EventSubscriber\ExceptionSubscriber:
        tags:
            - { name: kernel.event_subscriber }