Skip to content

Instantly share code, notes, and snippets.

@tarlepp
Created January 30, 2021 20:59
Show Gist options
  • Save tarlepp/f4af8e2b89b4ee83eb031f853a508e23 to your computer and use it in GitHub Desktop.
Save tarlepp/f4af8e2b89b4ee83eb031f853a508e23 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
App\EventListener\UserEntityEventListener:
tags:
- { name: doctrine.event_listener, event: prePersist }
- { name: doctrine.event_listener, event: preUpdate }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment