parameters:
    user.activity_listener.class: AppBundle\Subscriber\UserActivitySubscriber

services:
    # default configuration for services in *this* file
    _defaults:
        # automatically injects dependencies in your services
        autowire: true
        # automatically registers your services as commands, event subscribers, 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
        
    user.activity_listener:
        class: "%user.activity_listener.class%"
        arguments: []
        tags:
            - { name: kernel.event_listener, event: kernel.controller, method: onCoreController }
            
    AppBundle\EventListener\ProductListener:
        tags:
            - { name: kernel.event_listener, event: pimcore.dataobject.postUpdate, method: onProductUpdate }
            
        

    # Example custom templating helper
    # AppBundle\Templating\Helper\Example:
    #     # templating helpers need to be public as they
    #     # are fetched from the container on demand
    #     public: true
    #     tags:
    #         - { name: templating.helper, alias: fooBar }

    # Example event listener for objects
    # AppBundle\EventListener\TestListener:
    #     tags:
    #         - { name: kernel.event_listener, event: pimcore.dataobject.preUpdate, method: onObjectPreUpdate }
