config.yml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. imports:
  2. - { resource: parameters.yml }
  3. - { resource: security.yml }
  4. - { resource: assetic.yml }
  5. - { resource: @ChamiloCoreBundle/Resources/config/admin.yml }
  6. - { resource: @ChamiloNotebookBundle/Resources/config/admin.yml }
  7. # Mopa Bootstrap
  8. - { resource: mopa/mopa_bootstrap.yml }
  9. # Knp Paginator
  10. - { resource: knp/knp_paginator.yml }
  11. # FriendOfSymfony Bundles
  12. #- { resource: fos/fos_comment.yml }
  13. - { resource: fos/fos_rest.yml }
  14. - { resource: fos/fos_user.yml }
  15. #- { resource: fos/fos_elastica.yml }
  16. - { resource: fos/fos_message.yml }
  17. # Sonata Core Bundles
  18. - { resource: sonata/sonata_block.yml }
  19. - { resource: sonata/sonata_formatter.yml }
  20. - { resource: sonata/sonata_cache.yml }
  21. #- { resource: sonata/sonata_seo.yml }
  22. - { resource: sonata/sonata_timeline.yml }
  23. - { resource: sonata/sonata_intl.yml }
  24. - { resource: sonata/sonata_core.yml }
  25. # Sonata Feature Bundles
  26. - { resource: sonata/sonata_admin.yml }
  27. - { resource: sonata/sonata_page.yml }
  28. - { resource: sonata/sonata_media.yml }
  29. - { resource: sonata/sonata_news.yml }
  30. - { resource: sonata/sonata_user.yml }
  31. - { resource: sonata/sonata_notification.yml }
  32. - { resource: sonata/sonata_classification.yml }
  33. framework:
  34. #esi: ~
  35. translator: { fallback: "%locale%" }
  36. secret: "%secret%"
  37. router:
  38. resource: "%kernel.root_dir%/config/routing.yml"
  39. strict_requirements: ~
  40. form: ~
  41. csrf_protection: ~
  42. validation: { enable_annotations: true }
  43. templating:
  44. engines: ['twig']
  45. form:
  46. resources:
  47. - 'ChamiloCoreBundle:Form'
  48. #assets_version: SomeVersionScheme
  49. default_locale: "%locale%"
  50. trusted_hosts: ~
  51. trusted_proxies: ~
  52. session:
  53. # handler_id set to null will use default session handler from php.ini
  54. handler_id: ~
  55. cookie_lifetime: 1440
  56. gc_probability: 0
  57. fragments: ~
  58. http_method_override: true
  59. # Twig Configuration
  60. twig:
  61. debug: "%kernel.debug%"
  62. strict_variables: "%kernel.debug%"
  63. base_template_class: Sonata\CacheBundle\Twig\TwigTemplate14
  64. form:
  65. resources:
  66. - 'bootstrap_3_layout.html.twig'
  67. - 'SonataFormatterBundle:Form:formatter.html.twig'
  68. - 'SonataMediaBundle:Form:media_widgets.html.twig'
  69. - 'SonataCoreBundle:Form:datepicker.html.twig'
  70. - 'ChamiloCoreBundle:Form:fields.html.twig'
  71. exception_controller: 'FOS\RestBundle\Controller\ExceptionController::showAction'
  72. paths:
  73. "%kernel.root_dir%/../src/Chamilo/CoreBundle/Resources/views/default": template_style
  74. globals:
  75. show_toolbar: true
  76. show_footer: true
  77. software_name:
  78. version:
  79. session_teachers: 1
  80. teachers: 1
  81. news_counter:
  82. news_list:
  83. messages_count:
  84. message_link:
  85. is_profile_editable:
  86. administrator_name:
  87. plugin_footer_left:
  88. plugin_footer_center:
  89. plugin_content_bottom:
  90. plugin_header_left:
  91. plugin_header_center:
  92. plugin_header_right:
  93. plugin_header_main:
  94. plugin_menu_bottom:
  95. plugin_menu_top:
  96. plugin_content_top:
  97. plugin_footer_right:
  98. footer_extra_content:
  99. course_session_block:
  100. show_course_shortcut:
  101. show_course_navigation_menu:
  102. actions:
  103. header:
  104. message:
  105. welcome_to_course_block:
  106. # Assetic Configuration
  107. #assetic:
  108. # debug: "%kernel.debug%"
  109. # use_controller: false
  110. # bundles: [ ChamiloCoreBundle, ChamiloInstallerBundle ]
  111. # #java: /usr/bin/java
  112. # filters:
  113. # cssrewrite: ~
  114. # #closure:
  115. # # jar: "%kernel.root_dir%/Resources/java/compiler.jar"
  116. # #yui_css:
  117. # # jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"
  118. #
  119. # lessphp:
  120. # file: %kernel.root_dir%/../vendor/oyejorge/less.php/lessc.inc.php
  121. # apply_to: "\.less$"
  122. # cssrewrite: ~
  123. #braincrafted_bootstrap:
  124. #less_filter: lessphp
  125. # Doctrine Configuration
  126. doctrine:
  127. dbal:
  128. default_connection: default
  129. connections:
  130. default:
  131. driver: "%database_driver%"
  132. host: "%database_host%"
  133. port: "%database_port%"
  134. dbname: "%database_name%"
  135. user: "%database_user%"
  136. password: "%database_password%"
  137. charset: UTF8
  138. mapping_types:
  139. enum: string
  140. types:
  141. json: Sonata\Doctrine\Types\JsonType
  142. #currency: Sonata\Component\Currency\CurrencyDoctrineType
  143. orm:
  144. auto_generate_proxy_classes: "%kernel.debug%"
  145. default_entity_manager: default
  146. # auto_mapping: true
  147. entity_managers:
  148. default:
  149. auto_mapping: true
  150. mappings: ~
  151. # entity_listener_resolver: chamilo.doctrine.entity_listener_resolver
  152. #metadata_cache_driver: apc # default "array" "apc", "memcache", "memcached", "xcache"
  153. #query_cache_driver: apc
  154. # Swiftmailer Configuration
  155. swiftmailer:
  156. transport: %mailer_transport%
  157. host: %mailer_host%
  158. username: %mailer_user%
  159. password: %mailer_password%
  160. #jms_security_extra:
  161. # secure_all_services: false
  162. jms_serializer:
  163. metadata:
  164. directories:
  165. - { path: %kernel.root_dir%/../vendor/sonata-project/user-bundle/Resources/config/serializer/FOSUserBundle, namespace_prefix: 'FOS\UserBundle' }
  166. #- { path: %kernel.root_dir%/../vendor/sonata-project/ecommerce/src/BasketBundle/Resources/config/serializer/Component, namespace_prefix: 'Sonata\Component\Basket' }
  167. - { path: %kernel.root_dir%/../vendor/sonata-project/datagrid-bundle/Resources/config/serializer, namespace_prefix: 'Sonata\DatagridBundle' }
  168. knp_menu:
  169. twig: # use "twig: false" to disable the Twig extension and the TwigRenderer
  170. template: knp_menu.html.twig
  171. templating: false # if true, enables the helper for PHP templates
  172. default_renderer: twig # The renderer to use, list is also available by default
  173. # %kernel.root_dir%/DoctrineMigrations
  174. doctrine_migrations:
  175. dir_name: %kernel.root_dir%/../vendor/chamilo/chash/src/Chash/Migrations
  176. namespace: Chash\Migrations
  177. table_name: chamilo_migration_versions
  178. name: Chamilo Migrations
  179. #fos_advanced_encoder:
  180. # encoders:
  181. # FOS\UserBundle\Model\UserInterface: sha512
  182. # legacy_encoder:
  183. # id: chamilo_user.security.encoder
  184. sonata_admin:
  185. title: Chamilo
  186. title_logo: apple-touch-icon.png
  187. nelmio_api_doc: ~
  188. sensio_framework_extra:
  189. view: { annotations: false }
  190. router: { annotations: true }
  191. request: { converters: true }
  192. # Doctrine extensions configuration
  193. stof_doctrine_extensions:
  194. default_locale: "%locale%"
  195. translation_fallback: true
  196. orm:
  197. default:
  198. tree: true
  199. timestampable: true
  200. sluggable: true
  201. # Platform settings
  202. sylius_settings:
  203. driver: doctrine/orm
  204. classes:
  205. parameter:
  206. model: Chamilo\CoreBundle\Entity\SettingsCurrent
  207. repository: Chamilo\CoreBundle\Entity\Repository\SettingsCurrentRepository
  208. # Course settings
  209. chamilo_course:
  210. driver: doctrine/orm
  211. classes:
  212. parameter:
  213. model: Chamilo\CourseBundle\Entity\CCourseSetting
  214. repository: Chamilo\CourseBundle\Entity\Repository\CCourseSettingRepository
  215. doctrine_cache:
  216. providers:
  217. sylius_settings:
  218. type: file_system
  219. chamilo_settings:
  220. type: file_system
  221. # Bower configuration
  222. sp_bower:
  223. assetic: true
  224. install_on_warmup: false
  225. bundles:
  226. ChamiloThemeBundle:
  227. cache:
  228. directory: %kernel.root_dir%/cache/public/components/cache
  229. # Run to update js dependencies: app/console sp:bower:install
  230. # Grid default template
  231. apy_data_grid:
  232. theme: ChamiloCoreBundle::grid.html.twig
  233. liip_theme:
  234. themes: ['web', 'tablet', 'phone']
  235. active_theme: 'web'
  236. #vich_uploader:
  237. # db_driver: orm # or mongodb or propel or phpcr
  238. #
  239. # mappings:
  240. # user_image:
  241. # uri_prefix: /user/images
  242. # upload_destination: %kernel.root_dir%/../web/uploads/user
  243. # inject_on_load: false
  244. # delete_on_update: true
  245. # delete_on_remove: true
  246. # directory_namer: chamilo_core.naming.user_image