# 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:
    file_id_cv_drive_google: "%env(FILE_ID_CV_DRIVE_GOOGLE)%"
    recaptcha_secret_key: "%env(RECAPTCHA_SECRET_KEY)%"
    user_zoho_webhook: "%env(USER_ZOHO_WEBHOOK)%"
    password_zoho_webhook: "%env(PASSWORD_ZOHO_WEBHOOK)%"
    send_to_email: "%env(SEND_TO_EMAIL)%"
    access_token_whatsapp: "%env(ACCESS_TOKEN_WHATSAPP)%"
    token_webhook_whatsapp: "%env(TOKEN_WEBHOOK_WHATSAPP)%"
    from_phone_number_whatsapp_id: "%env(FROM_PHONE_NUMBER_WHATSAPP_ID)%"
    flow_token: "%env(FLOW_TOKEN)%"
    flow_id: "%env(FLOW_ID)%"
    timezone: "%env(APP_TIMEZONE)%"
    wordpress_api_url: '%env(SITE_WP_POSTS)%/wp-json/wp/v2/posts?per_page=4'

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'
    # add more service definitions when explicit configuration is needed
    # please note that last definitions always *replace* previous ones
    Netflie\WhatsAppCloudApi\WebHook: ~
    App\Service\WordPressService:
        arguments:
            $client: '@http_client'
            $apiUrl: '%wordpress_api_url%'
