# This file is the entry point to configure your own services.
# Files in the packages/ subdirectory configure your dependencies.

# Put parameters here that don't need to change on each machine where the app is deployed
# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
parameters:

services:
    #alias to inject container into AbstractController::setContainer
    Psr\Container\ContainerInterface: '@service_container'

    # default configuration for services in *this* file
    _defaults:
        autowire: true      # Automatically injects dependencies in your services.
        autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.

    # Custom entity value resolver to replace SensioFrameworkExtraBundle functionality
    Chill\MainBundle\ArgumentResolver\EntityValueResolver:
        tags:
            - { name: controller.argument_value_resolver, priority: 50 }
