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

# Put parameters here that don't need to change on each machine where the app is deployed
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
parameters:
  locale: es
#    mailer_user: alejandro.puigmarti@chattigo.com
#    mailer_transport: gmail

framework:
  #esi: ~
  translator: { fallbacks: ['%locale%'] }
  secret: '%secret%'
  router:
    resource: '%kernel.project_dir%/app/config/routing.yml'
    strict_requirements: ~
  form: ~
  csrf_protection: ~
  validation: { enable_annotations: true }
  #serializer: { enable_annotations: true }
  templating:
    engines: ['twig']
  default_locale: '%locale%'
  trusted_hosts: ~
  session:
    # https://symfony.com/doc/current/reference/configuration/framework.html#handler-id
    handler_id: session.handler.native_file
    save_path: '%kernel.project_dir%/var/sessions/%kernel.environment%'
  fragments: ~
  http_method_override: true
  assets: ~
  php_errors:
    log: true

# Twig Configuration
twig:
  debug: '%kernel.debug%'
  strict_variables: '%kernel.debug%'
  form_themes:
    - Themes/materialize_layout.html.twig
    - LexikFormFilterBundle:Form:form_div_layout.html.twig

fos_user:
  db_driver: orm # other valid values are 'mongodb' and 'couchdb'
  firewall_name: main
  user_class: AppBundle\Entity\User
  #    group:
  #            group_class: AppBundle\Entity\Group
  from_email:
    address: "%mailer_user%"
    sender_name: "%mailer_user%"


# Doctrine Configuration
doctrine:
  dbal:
    default_connection: default
    connections:
      default:
        driver: pdo_mysql
        host: '%database_host%'
        port: '%database_port%'
        dbname: '%database_name%'
        user: '%database_user%'
        password: '%database_password%'
        charset: UTF8

  orm:
    auto_generate_proxy_classes: '%kernel.debug%'

    default_entity_manager: default
    entity_managers:
      default:
        connection: default
        mappings:
          AppBundle:  ~

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

monolog:
  handlers:
    file_log:
      type: stream
      # log to var/logs/(environment).log
      path: "%kernel.logs_dir%/%kernel.environment%.log"
      # log *all* messages (debug is lowest level)
      level: error

    syslog_handler:
      type: syslog
      # log error-level messages and higher
      level: error

easy_admin:

  site_name: 'ideal'

  design:
    brand_color: 'rgba(42, 63, 84, 1)'
    color_scheme: 'light'
    menu:
      - label: 'Administracion'
        children: [ 'User']

      - { label: 'Regresar', icon: 'arrow-left', route: 'welcome_index' }
  entities:
    User:
      class: AppBundle\Entity\User
      label: 'Usuarios'
      list:
        title: "Usuarios del Sistema"
        fields: [ {property: 'username', label: 'Usuario'},
                  'email',
                  {property: 'enabled', label: 'Activo' },
                  {property: 'last_login', label: 'Ultimo Ingreso'},
                  {property: 'roles', label: 'Rol'}
                ]


easy_admin:
  site_name: 'IDEAL ADMIN'
  entities:
      User:
        class: App\Entity\User
        label: 'Usuarios'
        list:
          max_results: 10
          title: 'Usuarios del Sistema'
          fields:
            - { property: 'username', label: 'PERSONNUM' }
            - { property: 'email', label: 'EMAIL' }
            - { property: 'enables', label: 'ACTIVO' }
            - { property: 'last_login', label: 'ULT. INGRESO' }
            - { property: 'roles', label: 'PERMISOS' }
        show:
          title: 'Usuarios del Sistema'