Advertisement
Guest User

Untitled

a guest
Jun 8th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.83 KB | None | 0 0
  1. imports:
  2. - { resource: parameters.yml }
  3. - { resource: security.yml }
  4. - { resource: services.yml }
  5.  
  6. # Put parameters here that don't need to change on each machine where the app is deployed
  7. # http://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
  8. parameters:
  9. locale: en
  10.  
  11. framework:
  12. #esi: ~
  13. #translator: { fallbacks: ["%locale%"] }
  14. secret: "%secret%"
  15. router:
  16. resource: "%kernel.root_dir%/config/routing.yml"
  17. strict_requirements: ~
  18. form: ~
  19. csrf_protection: ~
  20. validation: { enable_annotations: true }
  21. #serializer: { enable_annotations: true }
  22. templating:
  23. engines: ['twig']
  24. #assets_version: SomeVersionScheme
  25. default_locale: "%locale%"
  26. trusted_hosts: ~
  27. trusted_proxies: ~
  28. session:
  29. # handler_id set to null will use default session handler from php.ini
  30. handler_id: ~
  31. fragments: ~
  32. http_method_override: true
  33.  
  34. # Twig Configuration
  35. twig:
  36. debug: "%kernel.debug%"
  37. strict_variables: "%kernel.debug%"
  38.  
  39. # Assetic Configuration
  40. assetic:
  41. debug: "%kernel.debug%"
  42. use_controller: false
  43. bundles: [ ]
  44. #java: /usr/bin/java
  45. filters:
  46. cssrewrite: ~
  47. #closure:
  48. # jar: "%kernel.root_dir%/Resources/java/compiler.jar"
  49. #yui_css:
  50. # jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"
  51.  
  52. # Doctrine Configuration
  53. doctrine:
  54. dbal:
  55. driver: pdo_mysql
  56. host: "%database_host%"
  57. port: "%database_port%"
  58. dbname: "%database_name%"
  59. user: "%database_user%"
  60. password: "%database_password%"
  61. charset: UTF8
  62. # if using pdo_sqlite as your database driver:
  63. # 1. add the path in parameters.yml
  64. # e.g. database_path: "%kernel.root_dir%/data/data.db3"
  65. # 2. Uncomment database_path in parameters.yml.dist
  66. # 3. Uncomment next line:
  67. # path: "%database_path%"
  68.  
  69. orm:
  70. auto_generate_proxy_classes: "%kernel.debug%"
  71. naming_strategy: doctrine.orm.naming_strategy.underscore
  72. auto_mapping: true
  73.  
  74. # Swiftmailer Configuration
  75. swiftmailer:
  76. transport: "%mailer_transport%"
  77. host: "%mailer_host%"
  78. username: "%mailer_user%"
  79. password: "%mailer_password%"
  80. spool: { type: memory }
  81.  
  82. # FOSRestBundle
  83. fos_rest:
  84. param_fetcher_listener: true
  85. body_listener: true
  86. format_listener: true
  87. view:
  88. view_response_listener: "force"
  89. force_redirects:
  90. html: false
  91. formats:
  92. json: true
  93. jsonp: true
  94. xml: true
  95. templating_formats:
  96. html: true
  97. jsonp_handler: ~
  98. default_engine: twig
  99. exception:
  100. codes:
  101. "Symfony\Component\Routing\Exception\ResourceNotFoundException": 404
  102. "Doctrine\ORM\OptimisticLockException": HTTP_CONFLICT
  103. routing_loader:
  104. default_format: json
  105. include_format: true
  106.  
  107. # Nelmio ApiDocBundle
  108. nelmio_api_doc:
  109. name: "Bowlee API documentation"
  110. sandbox:
  111. accept_type: application/json
  112.  
  113. # Nelmio CorsBundle
  114. nelmio_cors:
  115. # defaults:
  116. # allow_credentials: false
  117. # allow_origin: '*'
  118. # allow_headers: []
  119. # allow_methods: ['POST', 'PUT', 'GET', 'DELETE', 'OPTIONS']
  120. # expose_headers: []
  121. # max_age: 0
  122. # hosts: []
  123. paths:
  124. '^/api/':
  125. allow_origin: '*'
  126. allow_headers: ['X-Custom-Auth', 'Authorization', 'Content-Type']
  127. allow_methods: ['POST', 'PUT', 'GET', 'DELETE', 'OPTIONS']
  128. expose_headers: ['Location']
  129. max_age: 3600
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement