imports:
    - { resource: security.yml }
    - { resource: services.yml }
    - { resource: "@JotunheimrAdminBundle/Resources/config/config.yml" }
    - { resource: "@JotunheimrUserBundle/Resources/config/config.yml" }
    - { resource: "@MineSeekerBundle/Resources/config/config.yml" }
    - { resource: "@MineSeekerBundle/Resources/config/services.yml" }

# Put parameters here that don't need to change on each machine where the app is deployed
# http://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
parameters:
    locale: en
    mailer_user: 7system7@gmail.com
    mailer_name: Lang

framework:
    #esi:             ~
    translator:      { fallbacks: ["%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']
    default_locale:  "%locale%"
    trusted_hosts:   ~
    trusted_proxies: ~
    session: ~
#        http://symfony.com/doc/current/reference/configuration/framework.html#handler-id
#        handler_id:  session.handler.native_file
#        save_path:   "%kernel.root_dir%/../var/sessions/%kernel.environment%"
#        handler_id: session.handler.pdo
    fragments:       ~
    http_method_override: true
    assets: ~

# Twig Configuration
twig:
    debug:            "%kernel.debug%"
    strict_variables: "%kernel.debug%"
    globals:
        version: "0.37.18 (beta7)"
        facebook_api: "%facebook.api%"
        facebook_scope: "%facebook.scope%"
        facebook_api_version: "%facebook.version%"

# Doctrine Configuration
doctrine:
    dbal:
        driver:   pdo_mysql
        host:     "%database_host%"
        port:     "%database_port%"
        dbname:   "%database_name%"
        user:     "%database_user%"
        password: "%database_password%"
        charset:  UTF8
        # if using pdo_sqlite as your database driver:
        #   1. add the path in parameters.yml
        #     e.g. database_path: "%kernel.root_dir%/data/data.db3"
        #   2. Uncomment database_path in parameters.yml.dist
        #   3. Uncomment next line:
        #     path:     "%database_path%"

    orm:
        auto_generate_proxy_classes: "%kernel.debug%"
        naming_strategy: doctrine.orm.naming_strategy.underscore
        auto_mapping: true

# Assetic Configuration
assetic:
    debug: "%kernel.debug%"
    use_controller: "%kernel.debug%"
    bundles: ~
    node: /usr/bin/nodejs
    filters:
        cssrewrite: ~
        uglifyjs2:
            bin: "%kernel.root_dir%/../node_modules/uglify-js/bin/uglifyjs"
            no_copyright: true
        uglifycss:
            bin: "%kernel.root_dir%/../node_modules/uglifycss/uglifycss"

# FOS User Configuration
fos_user:
    db_driver: orm # other valid values are 'mongodb', 'couchdb' and 'propel'
    firewall_name: secured_area
    user_class: Jotunheimr\UserBundle\Entity\User
    from_email:
        address: "%mailer_user%"
        sender_name: "%mailer_name%"

# Facebook OAuth
hwi_oauth:
    firewall_names: [secured_area]
    resource_owners:
        facebook:
            type:                facebook
            client_id:           "%facebook.api%"
            client_secret:       "%facebook.api-secret%"
            scope:               "%facebook.scope%"
            options:
                display: popup
                auth_type: rerequest
                csrf: true

# Slack integration
cl_slack:
    api_token: xoxp-107639806167-107029084564-115427085733-cccaa4f96c89c87ce680c7f22acfd001
