Skip to content

Instantly share code, notes, and snippets.

@rileyrg
Created September 14, 2017 15:39
Show Gist options
  • Save rileyrg/b6b0c6dcb9057f48150828c14382e46e to your computer and use it in GitHub Desktop.
Save rileyrg/b6b0c6dcb9057f48150828c14382e46e to your computer and use it in GitHub Desktop.
services:
# default configuration for services in *this* file
_defaults:
# automatically injects dependencies in your services
autowire: true
# automatically registers your services as commands, form types, etc.
autoconfigure: true
# this means you cannot fetch services directly from the container via $container->get()
# if you need to do this, you can override this setting on individual services
public: false
# loads services from whatever directories you want (you can add directories!)
# this creates a service per class whose id is the fully-qualified class name
AppBundle\:
resource: '../../src/*'
exclude: '../../src/{Entity,Repository}'
AppBundle\Controller\:
resource: '../../src/Controller'
public: true
tags: ['controller.service_arguments']
kernel.exception_listener:
class: AppBundle\EventListener\PersonFilterConditionListener
tags:
- { name: kernel.event_listener, event: lexik_filter.apply_filters.orm}
twig.text_extension:
class: Twig_Extensions_Extension_Text
tags:
- name: twig.extension
app.security.login_form_authenticator:
class: AppBundle\Security\LoginFormAuthenticator
app.doctrine.hash_password_listener:
class: AppBundle\Doctrine\HashPasswordListener
tags:
- { name: doctrine.event_subscriber }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment