services:
    light_switch:
        class: My\TestBundle\Light\LightSwitch
        arguments: [@session]
        
    light_controller:
        class: My\TestBundle\Controller\LightController
        arguments: [@light_switch]
services:
    light_switch:
        class: My\TestBundle\Light\LightSwitch
        arguments: [@session]
        
    light_controller:
        class: My\TestBundle\Controller\LightController
        arguments: [@light_switch]
        tags: 
            - {name: container_aware}
Add the compiler_aware tag to the service definition.
Add the compiler_aware tag to the service definition.
