48 lines
2.4 KiB
YAML
48 lines
2.4 KiB
YAML
# Learn more about services, parameters and containers at
|
|
# http://symfony.com/doc/current/service_container.html
|
|
parameters:
|
|
|
|
services:
|
|
colored_line_formatter:
|
|
class: Bramus\Monolog\Formatter\ColoredLineFormatter
|
|
tags:
|
|
- { name: 'monolog.logger' }
|
|
|
|
doughnutwedding.form.registration:
|
|
class: Sikofitt\DoughnutWeddingBundle\Form\RegistrationType
|
|
arguments: ['@fos_user.user_manager']
|
|
tags:
|
|
- { name: form.type, alias: app_user_registration }
|
|
doughnutwedding.form.profile:
|
|
class: Sikofitt\DoughnutWeddingBundle\Form\ProfileEditType
|
|
arguments: ['@fos_user.user_manager']
|
|
tags:
|
|
- { name: form.type, alias: app_user_profile_edit }
|
|
doughnutwedding.event.redirect_user_logged_in_event:
|
|
class: Sikofitt\DoughnutWeddingBundle\EventListener\UserRedirectOnLoggedInListener
|
|
arguments: ['@security.token_storage', '@router']
|
|
tags:
|
|
- { name: kernel.event_listener, event: kernel.request }
|
|
doughnutwedding.event.redirect_user_after_register_event:
|
|
class: Sikofitt\DoughnutWeddingBundle\EventListener\RedirectOnUserRegisterListener
|
|
arguments: ['@service_container']
|
|
tags:
|
|
- { name: kernel.event_listener, event: fos_user.registration.confirmed }
|
|
- { name: kernel.event_listener, event: fos_user.registration.completed }
|
|
doughnutwedding.google_cloud_storage.service:
|
|
class: \Google_Service_Storage
|
|
factory: ['Sikofitt\DoughnutWeddingBundle\Factory\GoogleCloudStorageServiceFactory', createGoogleCloudService]
|
|
arguments: ['%google.credentials_file%', '%google.client_id%', '%google.application_name%']
|
|
|
|
doughnutwedding.event.check_email_on_reset_event:
|
|
class: Sikofitt\DoughnutWeddingBundle\EventListener\CheckThatEmailAndUserNameExistOnResetRequest
|
|
arguments: ['@router', '@templating.engine.twig']
|
|
tags:
|
|
- { name: kernel.event_listener, event: fos_user.resetting.send_email.initialize }
|
|
doughnutwedding.event.need_to_authenticate_listener_event:
|
|
class: Sikofitt\DoughnutWeddingBundle\EventListener\NeedToAuthenticateListenerEvent
|
|
tags:
|
|
- { name: kernel.event_listener, event: kernel.response }
|
|
doughnutwedding.security.access_denied_handler:
|
|
class: Sikofitt\DoughnutWeddingBundle\Security\AccessDeniedHandler
|
|
arguments: ['@router', '@monolog.logger'] |