config.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. framework:
  2. charset: UTF-8
  3. secret: xxxxxxxxxx
  4. csrf_protection:
  5. enabled: true
  6. router: { resource: "%kernel.root_dir%/config/routing.yml" }
  7. validation: { enabled: true, annotations: true }
  8. templating: { engines: ['twig', 'php'] }
  9. session:
  10. default_locale: en
  11. lifetime: 3600
  12. auto_start: false
  13. twig:
  14. debug: %kernel.debug%
  15. strict_variables: %kernel.debug%
  16. assetic:
  17. use_controller: true
  18. read_from: "%kernel.root_dir%/web"
  19. bundles: [ TestBundle ]
  20. assets:
  21. jquery: js/jquery.js
  22. app_css:
  23. inputs:
  24. - css/main.css
  25. - css/more.css
  26. - @widget_css
  27. filters: [ ?yui_css ]
  28. output: css/packed/app.css
  29. widget_css:
  30. inputs: css/widget.sass
  31. filters: sass
  32. filters:
  33. sass:
  34. apply_to: "\.sass$"
  35. yui_css:
  36. jar: %kernel.root_dir/java/yui-compressor-2.4.6.jar
  37. twig:
  38. functions:
  39. yui_css: { output: css/*.css }