Advertisement
Guest User

Untitled

a guest
Jan 9th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.97 KB | None | 0 0
  1. imports:
  2.     - { resource: parameters.yml }
  3.     - { resource: security.yml }
  4.     - { resource: services.yml }
  5.     - { resource: "@CilloxPriceBundle/Resources/config/services.yml" }
  6.  
  7. # Put parameters here that don't need to change on each machine where the app is deployed
  8. # http://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
  9. parameters:
  10.     locale: en
  11.  
  12. framework:
  13.    #esi:             ~
  14.     #translator:      { fallbacks: ["%locale%"] }
  15.     secret:         "%secret%"
  16.     router:
  17.         resource: "%kernel.root_dir%/config/routing.yml"
  18.         strict_requirements: ~
  19.     form:           ~
  20.     csrf_protection: ~
  21.     validation:     { enable_annotations: true }
  22.     #serializer:      { enable_annotations: true }
  23.     templating:
  24.         engines: ['twig']
  25.     default_locale: "%locale%"
  26.     trusted_hosts:  ~
  27.     trusted_proxies: ~
  28.     session:
  29.        # http://symfony.com/doc/current/reference/configuration/framework.html#handler-id
  30.         handler_id: session.handler.native_file
  31.         save_path:  "%kernel.root_dir%/../var/sessions/%kernel.environment%"
  32.     fragments:      ~
  33.     http_method_override: true
  34.     assets: ~
  35.     php_errors:
  36.         log: true
  37.  
  38.  
  39. # Twig Configuration
  40. twig:
  41.     debug:           "%kernel.debug%"
  42.     strict_variables: "%kernel.debug%"
  43.  
  44. # Doctrine Configuration
  45. doctrine:
  46.     dbal:
  47.         driver:  pdo_mysql
  48.         host:    "%database_host%"
  49.         port:    "%database_port%"
  50.         dbname:  "%database_name%"
  51.         user:    "%database_user%"
  52.         password: "%database_password%"
  53.         charset: UTF8
  54.         # if using pdo_sqlite as your database driver:
  55.         #   1. add the path in parameters.yml
  56.         #     e.g. database_path: "%kernel.root_dir%/data/data.db3"
  57.         #   2. Uncomment database_path in parameters.yml.dist
  58.         #   3. Uncomment next line:
  59.         #     path:     "%database_path%"
  60.  
  61.     orm:
  62.         auto_generate_proxy_classes: "%kernel.debug%"
  63.         naming_strategy: doctrine.orm.naming_strategy.underscore
  64.         auto_mapping: true
  65.  
  66. # Swiftmailer Configuration
  67. swiftmailer:
  68.     transport: "%mailer_transport%"
  69.     host:     "%mailer_host%"
  70.     username: "%mailer_user%"
  71.     password: "%mailer_password%"
  72.     spool:    { type: memory }
  73.  
  74. fos_rest:
  75.     access_denied_listener:
  76.        # all requests using the 'json' format will return a 403 on an access denied violation
  77.         json: true
  78.     param_fetcher_listener: true
  79.     body_listener: true
  80.     format_listener: false
  81. #        rules:
  82. #            - prefer_extension: false
  83. #            - priorities: ['json']
  84. #            - fallback_format: `
  85.     view:
  86.         view_response_listener: 'force'
  87.         formats:
  88.             json: true
  89.         templating_formats:
  90.             html: true
  91.     routing_loader:
  92.         default_format: json
  93.         include_format: false
  94.  
  95. jms_serializer:
  96.     property_naming:
  97.         separator:
  98.         lower_case: false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement