# Learn more about services, parameters and containers at
# http://symfony.com/doc/current/book/service_container.html
parameters:
#    parameter_name: value

services:
#    service_name:
#        class: AppBundle\Directory\ClassName
#        arguments: ["@another_service_name", "plain_value", "%parameter_name%"]

  app.controller_listener:
    class: AppBundle\Listener\KernelControllerListener
    arguments:
      - "@doctrine.orm.entity_manager"
      - "@controller_resolver"
    tags:
      - { name: kernel.event_listener, event: kernel.controller, method: onKernelController }

  app.twig_extension:
    class: AppBundle\Twig\AppExtension
    #public: false
    arguments:
      - '@twig'
    tags:
      - { name: twig.extension }

  app.booking_exporter:
    class: AppBundle\Export\SternToursCrmBookingExporter
    arguments:
      - '@monolog.logger'

  app.booking_request_validator:
    class: AppBundle\Validator\BookingRequestValidator
    tags:
      - {name: validator.constraint_validator }