imports:
    - { resource: parameters.yml }
    - { resource: security.yml }
    - { resource: services.yml }

    
framework:
    #esi:             ~
    translator:      { fallback: "%locale%" }
    secret:          "%secret%"
    router:
        resource: "%kernel.root_dir%/config/routing.yml"
        strict_requirements: ~
    form:            ~
    csrf_protection: ~
    validation:      { enable_annotations: true }
    #serializer:      { enable_annotations: true }
    templating:
        engines: ['twig']
        #assets_version: SomeVersionScheme
    default_locale:  "%locale%"
    trusted_hosts:   ~
    trusted_proxies: ~
    session:
        # handler_id set to null will use default session handler from php.ini
        handler_id:  ~
    fragments:       ~
    http_method_override: true

# Twig Configuration
twig:
    debug:            "%kernel.debug%"
    strict_variables: "%kernel.debug%"
    globals:
      host: "%host%"

# Assetic Configuration
assetic:
    debug:          "%kernel.debug%"
    use_controller: false
    bundles:        ["EPSCoreBundle", "EPSLayout04Bundle" ]
    #java: /usr/bin/java
    filters:
        cssrewrite: ~
        #closure:
        #    jar: "%kernel.root_dir%/Resources/java/compiler.jar"
        #yui_css:
        #    jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"

# Doctrine Configuration
doctrine:
    dbal:
      connections:
            default:
                driver:   "%database_driver%"
                host:     "%database_host%"
                port:     "%database_port%"
                dbname:   "%database_name%"
                user:     "%database_user%"
                password: "%database_password%"
                charset:  UTF8
            presta:
                driver:   pdo_mysql
                host:     '%database_host%'
                port:     '%database_port%'
                dbname:   '%database_name_presta%'
                user:     '%database_user_presta%'
                password: '%database_password_presta%'
                charset:  UTF8
        

    orm:
        default_entity_manager: default
        auto_generate_proxy_classes: "%kernel.debug%"
        
        entity_managers:
            default:
                connection: default
                auto_mapping: true
                naming_strategy: doctrine.orm.naming_strategy.underscore
            presta:
                connection: presta
        

# Swiftmailer Configuration
swiftmailer:
    transport: "%mailer_transport%"
    host:      "%mailer_host%"
    username:  "%mailer_user%"
    password:  "%mailer_password%"
    spool:     { type: memory }


# Doctrine Extensions Configuration
stof_doctrine_extensions:
        default_locale: %locale%
        translation_fallback: true
        orm:
            default:
              timestampable: true
              translatable: false    
              
###   mopa_bootstrap   ###
mopa_bootstrap:
    form:
        show_legend: false # default is true
        show_child_legend: false # default is true
        render_optional_text: false
        render_required_asterisk: true
        collection:
            widget_remove_btn:
                icon: trash
                icon_inverted: true
            widget_add_btn:
                icon: plus-sign
    menu: ~


###  apy_data_grid  ###                
apy_data_grid:
    persistence: true
    no_data_message: false
    no_result_message: Aucune donnée.
    pagerfanta:
      enable: true    #default false
      view_class: Pagerfanta\View\TwitterBootstrap3View #default    Pagerfanta\View\DefaultView
      options:            #all options of pager fanta view constructor
         prev_message : «
         next_message : »
         

### jms_security_extra ###
jms_security_extra:
    # Enables expression language
    expressions: true

# Doctrine Migration Configuration
doctrine_migrations:
    table_name: sf_migration_versions

### pdf snappy ###
knp_snappy:
    pdf:
        enabled:    true
        binary:     %knp_path_to_wkhtmltopdf%
        #options:    
        #  footer-center : page [page] sur [topage]
        #  footer-font-size : 8
    image:
        enabled:    true
        binary:     /usr/local/bin/wkhtmltoimage
        options:    []  
        
# Put parameters here that don't need to change on each machine where the app is deployed 
parameters:
    grid.class: EPS\Layout04Bundle\Grid\Grid       
    grid.twig_extension.class:  EPS\Layout04Bundle\Twig\DataGridExtension  
        
eps_param:
    default_val_dir: EPSParams    
