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

services:
    # default configuration for services in *this* file
    _defaults:
        autowire: true
        autoconfigure: true
        public: true

    # makes classes in src/AppBundle available to be used as services
    AppBundle\:
        resource: '../../src/AppBundle/*'
        # you can exclude directories or files
        # but if a service is unused, it's removed anyway
        exclude: '../../src/AppBundle/{Entity,Repository,Security}'
    AppBundle\Service\DBVersion:
        arguments: ['@twig', '@doctrine', '%doctrine.default_connection%']
        tags: [{name: kernel.event_listener, event: kernel.request}]
    AppBundle\Service\TwigProvider\Types:
        arguments: ['@twig']
        tags: [{name: kernel.event_listener, event: kernel.request}]
    app.form.registration:
        class: AppBundle\Form\RegistrationFormType
        tags: [{name: form.type, alias: app_user_registration }]
    app.fos_user.oauth_provider:
        # Change the class according to the location of the FOSUBUserProvider class
        class: AppBundle\Security\Core\User\FOSUBUserProvider
        arguments: ['@fos_user.user_manager.default', {github: github_id}]
    AppBundle\Security\Voter\ProjectVoter:
        tags: [{name: security.voter}]
# Learn more about services, parameters and containers at
# http://symfony.com/doc/current/book/service_container.html
parameters:
#    parameter_name: value

services:
    # default configuration for services in *this* file
    _defaults:
        autowire: true
        autoconfigure: true
        public: true

    # makes classes in src/AppBundle available to be used as services
    AppBundle\:
        resource: '../../src/AppBundle/*'
        # you can exclude directories or files
        # but if a service is unused, it's removed anyway
        exclude: '../../src/AppBundle/{Entity,Repository,Security}'
    AppBundle\Service\DBVersion:
        arguments: ['@twig', '@doctrine', '%default_data_connection%']
        tags: [{name: kernel.event_listener, event: kernel.request}]
    AppBundle\Service\TwigProvider\Types:
        arguments: ['@twig']
        tags: [{name: kernel.event_listener, event: kernel.request}]
    app.form.registration:
        class: AppBundle\Form\RegistrationFormType
        tags: [{name: form.type, alias: app_user_registration }]
    app.fos_user.oauth_provider:
        # Change the class according to the location of the FOSUBUserProvider class
        class: AppBundle\Security\Core\User\FOSUBUserProvider
        arguments: ['@fos_user.user_manager.default', {github: github_id}]
    AppBundle\Security\Voter\ProjectVoter:
        tags: [{name: security.voter}]
Change name of connection which is passed to DBVersion
Change name of connection which is passed to DBVersion
