mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-04 16:06:13 +00:00
64 lines
2.0 KiB
YAML
64 lines
2.0 KiB
YAML
services:
|
|
_defaults:
|
|
autowire: true # Automatically injects dependencies in your services.
|
|
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
|
|
|
|
# makes classes in src/ available to be used as services
|
|
# this creates a service per class whose id is the fully-qualified class name
|
|
Chill\PersonBundle\:
|
|
resource: '../src/'
|
|
exclude:
|
|
- '../src/DependencyInjection/'
|
|
- '../src/Entity/'
|
|
- '../src/Kernel.php'
|
|
- '../src/Tests/'
|
|
|
|
Chill\PersonBundle\Form\Type\:
|
|
resource: '../src/Form/Type/'
|
|
tags:
|
|
- { name: form.type }
|
|
|
|
Chill\PersonBundle\Timeline\:
|
|
resource: '../src/Timeline/'
|
|
tags:
|
|
- { name: chill.timeline, context: person }
|
|
|
|
Chill\PersonBundle\Controller\:
|
|
resource: '../src/Controller/'
|
|
tags: ['controller.service_arguments']
|
|
|
|
Chill\PersonBundle\Repository\:
|
|
resource: '../src/Repository/'
|
|
tags: ['doctrine.repository_service']
|
|
|
|
Chill\PersonBundle\Command\:
|
|
resource: '../src/Command/'
|
|
tags:
|
|
- { name: console.command }
|
|
|
|
Chill\PersonBundle\Menu\:
|
|
resource: '../src/Menu/'
|
|
tags:
|
|
- { name: 'chill.menu_builder' }
|
|
|
|
Chill\PersonBundle\EventSubscriber\:
|
|
resource: '../src/EventSubscriber/'
|
|
tags:
|
|
- { name: kernel.event_subscriber }
|
|
|
|
chill.person.security.authorization.person:
|
|
class: Chill\PersonBundle\Security\Authorization\PersonVoter
|
|
arguments:
|
|
- "@chill.main.security.authorization.helper"
|
|
tags:
|
|
- { name: security.voter }
|
|
- { name: chill.role }
|
|
|
|
chill.person.birthdate_validation:
|
|
class: Chill\PersonBundle\Validator\Constraints\BirthdateValidator
|
|
arguments:
|
|
- "%chill_person.validation.birtdate_not_before%"
|
|
tags:
|
|
- { name: validator.constraint_validator, alias: birthdate_not_before }
|
|
|