# 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%"]
    api_key_user_provider:
        class: AppBundle\Security\ApiKeyUserProvider
        arguments:
          - "@doctrine.orm.entity_manager"
    apikey_authenticator:
        class: AppBundle\Security\ApiKeyAuthenticator
        public: false

    app_bundle.code_generator.service:
        class: AppBundle\Service\CodeGeneratorService
        arguments:
            - "tetdajhdawdh"

    app_bundle.link_code_generator.listener:
        class: AppBundle\EventListener\LinkCodeGenerator
        arguments:
            - "@app_bundle.code_generator.service"
        tags:
            - { name: doctrine.event_subscriber, connection: default }
# 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%"]
    api_key_user_provider:
        class: AppBundle\Security\ApiKeyUserProvider
        arguments:
          - "@doctrine.orm.entity_manager"
    apikey_authenticator:
        class: AppBundle\Security\ApiKeyAuthenticator
        public: false

    app_bundle.code_generator.service:
        class: AppBundle\Service\CodeGeneratorService
        arguments:
            - "%secret%"

    app_bundle.link_code_generator.listener:
        class: AppBundle\EventListener\LinkCodeGenerator
        arguments:
            - "@app_bundle.code_generator.service"
        tags:
            - { name: doctrine.event_subscriber, connection: default }
Use parameters.secret to generate short codes
Use parameters.secret to generate short codes
