config.yml 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. imports:
  2. - { resource: parameters.yml }
  3. - { resource: security.yml }
  4. - { resource: assetic.yml }
  5. - { resource: services.yml }
  6. # - { resource: @ChamiloCoreBundle/Resources/config/admin.yml }
  7. # - { resource: @ChamiloNotebookBundle/Resources/config/admin.yml }
  8. # Mopa Bootstrap
  9. - { resource: mopa/mopa_bootstrap.yml }
  10. # FriendOfSymfony Bundles
  11. #- { resource: fos/fos_comment.yml }
  12. # - { resource: fos/fos_rest.yml }
  13. - { resource: fos/fos_user.yml }
  14. #- { resource: fos/fos_elastica.yml }
  15. # - { resource: fos/fos_message.yml }
  16. # Sonata Core Bundles
  17. - { resource: sonata/sonata_block.yml }
  18. - { resource: sonata/sonata_formatter.yml }
  19. - { resource: sonata/sonata_cache.yml }
  20. - { resource: sonata/sonata_seo.yml }
  21. # - { resource: sonata/sonata_timeline.yml }
  22. - { resource: sonata/sonata_intl.yml }
  23. - { resource: sonata/sonata_core.yml }
  24. - { resource: sonata/sonata_user.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_translation.yml }
  30. # - { resource: sonata/sonata_news.yml }
  31. # - { resource: sonata/sonata_user.yml }
  32. # - { resource: sonata/sonata_notification.yml }
  33. - { resource: sonata/sonata_classification.yml }
  34. - { resource: sonata/sonata_timeline.yml }
  35. # - { resource: @CmfBlogBundle/Resources/config/cmf_routing_auto.xml }
  36. # - { resource: @CmfBlogBundle/Resources/config/admin.yml }
  37. - { resource: ivory_ckeditor.yml }
  38. # Put parameters here that don't need to change on each machine where the app is deployed
  39. # http://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
  40. parameters:
  41. locale: fr
  42. framework:
  43. #esi: ~
  44. translator: { fallbacks: ["%locale%"] }
  45. secret: "%secret%"
  46. router:
  47. resource: "%kernel.root_dir%/config/routing.yml"
  48. strict_requirements: ~
  49. form: ~
  50. csrf_protection: ~
  51. validation: { enable_annotations: true }
  52. #serializer: { enable_annotations: true }
  53. templating:
  54. engines: ['twig']
  55. #assets_version: SomeVersionScheme
  56. default_locale: "%locale%"
  57. trusted_hosts: ~
  58. trusted_proxies: ~
  59. session:
  60. # handler_id set to null will use default session handler from php.ini
  61. handler_id: ~
  62. name: ch_sid
  63. fragments: ~
  64. http_method_override: true
  65. theodo_evolution_session:
  66. bag_manager_service: theodo_evolution.session.symfony1.bag_manager
  67. bag_configuration_service: theodo_evolution.session.symfony1.bag_manager_configuration
  68. # Twig Configuration
  69. twig:
  70. debug: "%kernel.debug%"
  71. strict_variables: "%kernel.debug%"
  72. base_template_class: Sonata\CacheBundle\Twig\TwigTemplate14
  73. form:
  74. resources:
  75. - 'bootstrap_3_horizontal_layout.html.twig'
  76. - 'SonataFormatterBundle:Form:formatter.html.twig'
  77. - 'SonataMediaBundle:Form:media_widgets.html.twig'
  78. - 'SonataCoreBundle:Form:datepicker.html.twig'
  79. exception_controller: 'FOS\RestBundle\Controller\ExceptionController::showAction'
  80. # paths:
  81. # "%kernel.root_dir%/../src/Chamilo/CoreBundle/Resources/views/default": template_style
  82. globals:
  83. show_toolbar: true
  84. show_footer: true
  85. software_name: Chamilo
  86. version: 2
  87. session_teachers:
  88. teachers:
  89. news_counter:
  90. news_list:
  91. messages_count:
  92. message_link:
  93. is_profile_editable:
  94. plugin_footer_left:
  95. plugin_footer_center:
  96. plugin_content_bottom:
  97. plugin_header_left:
  98. plugin_header_center:
  99. plugin_header_right:
  100. plugin_header_main:
  101. plugin_menu_bottom:
  102. plugin_menu_top:
  103. plugin_content_top:
  104. plugin_footer_right:
  105. footer_extra_content:
  106. course_session_block:
  107. show_course_shortcut:
  108. show_course_navigation_menu:
  109. actions:
  110. header:
  111. message:
  112. show_media_element: 1
  113. # Assetic Configuration
  114. assetic:
  115. debug: "%kernel.debug%"
  116. use_controller: false
  117. bundles: [ ]
  118. #java: /usr/bin/java
  119. filters:
  120. cssrewrite: ~
  121. #closure:
  122. # jar: "%kernel.root_dir%/Resources/java/compiler.jar"
  123. #yui_css:
  124. # jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"
  125. # Doctrine Configuration
  126. doctrine:
  127. dbal:
  128. default_connection: default
  129. connections:
  130. default:
  131. driver: pdo_mysql
  132. host: "%database_host%"
  133. port: "%database_port%"
  134. dbname: "%database_name%"
  135. user: "%database_user%"
  136. password: "%database_password%"
  137. charset: UTF8
  138. # if using pdo_sqlite as your database driver:
  139. # 1. add the path in parameters.yml
  140. # e.g. database_path: "%kernel.root_dir%/data/data.db3"
  141. # 2. Uncomment database_path in parameters.yml.dist
  142. # 3. Uncomment next line:
  143. # path: "%database_path%"
  144. types:
  145. json: Sonata\Doctrine\Types\JsonType
  146. orm:
  147. auto_generate_proxy_classes: "%kernel.debug%"
  148. default_entity_manager: default
  149. # auto_mapping: true
  150. entity_managers:
  151. default:
  152. auto_mapping: true
  153. mappings: ~
  154. # Swiftmailer Configuration
  155. swiftmailer:
  156. transport: "%mailer_transport%"
  157. host: "%mailer_host%"
  158. username: "%mailer_user%"
  159. password: "%mailer_password%"
  160. spool: { type: memory }
  161. doctrine_migrations:
  162. dir_name: %kernel.root_dir%/../app/Migrations/Schema/V111
  163. namespace: Application\Migrations\Schema\V111
  164. table_name: version
  165. name: Chamilo Migrations
  166. # Grid default template
  167. #apy_data_grid:
  168. # theme: ChamiloCoreBundle::grid.html.twig
  169. #
  170. stof_doctrine_extensions:
  171. default_locale: "%locale%"
  172. translation_fallback: true
  173. orm:
  174. default:
  175. tree: true
  176. timestampable: true
  177. sluggable: true
  178. sortable: true
  179. #liip_theme:
  180. # themes: ['web', 'tablet', 'phone']
  181. # active_theme: 'web'
  182. # assetic_integration: true
  183. #oneup_flysystem:
  184. # adapters:
  185. # local.adapter:
  186. # local:
  187. # directory: %kernel.root_dir%/courses
  188. ## s3.adapter:
  189. ## awss3v3:
  190. ## client: s3_client # add service "s3_client"
  191. ## bucket: ~
  192. ## prefix: ~
  193. #
  194. # filesystems:
  195. # course:
  196. # adapter: local.adapter
  197. # cache: ~
  198. # alias: ~
  199. # mount: ~
  200. #jms_translation:
  201. # configs:
  202. # app:
  203. # dirs: [%kernel.root_dir%, %kernel.root_dir%/../src]
  204. # output_dir: %kernel.root_dir%/Resources/translations
  205. # ignored_domains: [routes]
  206. # excluded_names: ["*TestCase.php", "*Test.php"]
  207. # excluded_dirs: [cache, data, logs]
  208. ## extractors: [alias_of_the_extractor]
  209. fm_elfinder:
  210. assets_path: /chamilo_master/web/assets
  211. instances:
  212. default:
  213. locale: %locale% # defaults to current request locale
  214. editor: ckeditor # other options are tinymce, tinymce4, form, custom and simple
  215. fullscreen: true # defaults true, applies to simple and ckeditor editors
  216. theme: smoothness # jquery theme
  217. include_assets: true # disable if you want to handle loading of the javascript and css assets yourself
  218. connector:
  219. debug: false # defaults to false
  220. roots: # at least one root must be defined
  221. # uploads:
  222. # show_hidden: false # defaults to false
  223. # driver: LocalFileSystem
  224. # path: uploads
  225. # upload_allow: ['image/png', 'image/jpg', 'image/jpeg']
  226. # upload_deny: ['all']
  227. # upload_max_size: 2M
  228. local:
  229. driver: Flysystem
  230. path: uploads
  231. flysystem:
  232. type: local
  233. options:
  234. local:
  235. path: %kernel.root_dir%/../web/media/
  236. upload_allow: ['all']
  237. #upload_allow: ['image/png', 'image/jpg', 'image/jpeg']
  238. #upload_deny: ['all']
  239. upload_max_size: 2M
  240. #lunetics_locale:
  241. # guessing_order:
  242. # - query
  243. # - router
  244. # - session
  245. # #- browser
  246. # allowed_locales: "%locales%"
  247. knp_menu:
  248. twig: true
  249. #
  250. #hwi_oauth:
  251. # firewall_names: [main]
  252. # resource_owners:
  253. # any_name:
  254. # type: github
  255. # client_id: <client_id>
  256. # client_secret: <client_secret>
  257. #gregwar_captcha:
  258. # Doctrine audit
  259. sonata_doctrine_orm_admin:
  260. audit:
  261. force: false # Audits are set in the admin.yml files with audit:true