doughnut-wedding/app/config/services.yml

26 lines
1.1 KiB
YAML
Raw Normal View History

2017-03-29 09:24:59 -07:00
# 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' }
2017-04-09 18:08:01 -07:00
doughnutwedding.form.registration:
class: Sikofitt\DoughnutWeddingBundle\Form\RegistrationType
2017-04-22 12:43:30 -07:00
arguments: ['@fos_user.user_manager']
2017-04-09 18:08:01 -07:00
tags:
2017-04-22 12:43:30 -07:00
- { name: form.type, alias: app_user_registration }
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: ['@router']
tags:
- { name: kernel.event_listener, event: fos_user.registration.confirmed }
- { name: kernel.event_listener, event: fos_user.registration.completed }