suivi/config/services.yaml
Simon Vieille 688fdd49ee
add bill categories
add webdav client

change pdf viewer
2023-04-09 17:56:15 +02:00

82 lines
3 KiB
YAML

# 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/configuration.html#application-related-configuration
parameters:
webdav_billing_server: "%env(WEBDAV_BILLING_SERVER)%"
webdav_billing_base_url: "%env(WEBDAV_BILLING_BASE_URL)%"
webdav_billing_username: "%env(WEBDAV_BILLING_USERNAME)%"
webdav_billing_password: "%env(WEBDAV_BILLING_PASSWORD)%"
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\Core\:
resource: '../vendor/murph/murph-core/src/core/'
exclude:
- '../vendor/murph/murph-core/src/core/DependencyInjection/'
- '../vendor/murph/murph-core/src/core/Entity/'
App\Core\EventListener\RedirectListener:
tags:
- { name: kernel.event_listener, event: kernel.exception }
App\Core\EventListener\AnalyticListener:
tags:
- { name: kernel.event_listener, event: kernel.request }
App\:
resource: '../src/'
exclude:
- '../src/DependencyInjection/'
- '../src/Entity/'
- '../src/Kernel.php'
- '../src/Tests/'
App\Core\Maker\:
resource: '../vendor/murph/murph-core/src/core/Maker/'
tags: ['maker.command']
App\Core\Controller\:
resource: '../vendor/murph/murph-core/src/core/Controller/'
tags: ['controller.service_arguments']
App\Controller\:
resource: '../src/Controller/'
tags: ['controller.service_arguments']
site.route_loader:
class: App\Core\Router\SiteRouteLoader
tags: [routing.loader]
gedmo.listener.tree:
class: Gedmo\Tree\TreeListener
tags:
- { name: doctrine.event_subscriber, connection: default }
calls:
- [ setAnnotationReader, [ "@annotation_reader" ] ]
App\Security\OpenSSL:
public: true
arguments:
$publicKeyPath: '%kernel.project_dir%/config/secrets/prod.public.key'
$privateKeyPath: '%kernel.project_dir%/config/secrets/prod.private.key'
$filesystem: '@filesystem'
App\Api\Webdav\Client:
public: true
arguments:
$server: '%webdav_billing_server%'
$baseUrl: '%webdav_billing_base_url%'
$username: '%webdav_billing_username%'
$password: '%webdav_billing_password%'
# add more service definitions when explicit configuration is needed
# please note that last definitions always *replace* previous ones