config.yml 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  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: en
  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:
  67. class: Theodo\Evolution\Bundle\SessionBundle\Manager\Symfony1\BagManager
  68. configuration_class: Theodo\Evolution\Bundle\SessionBundle\Manager\Symfony1\BagConfiguration
  69. # Twig Configuration
  70. twig:
  71. debug: "%kernel.debug%"
  72. strict_variables: "%kernel.debug%"
  73. base_template_class: Sonata\CacheBundle\Twig\TwigTemplate14
  74. form:
  75. resources:
  76. - 'bootstrap_3_horizontal_layout.html.twig'
  77. - 'SonataFormatterBundle:Form:formatter.html.twig'
  78. - 'SonataMediaBundle:Form:media_widgets.html.twig'
  79. - 'SonataCoreBundle:Form:datepicker.html.twig'
  80. exception_controller: 'FOS\RestBundle\Controller\ExceptionController::showAction'
  81. # paths:
  82. # "%kernel.root_dir%/../src/Chamilo/CoreBundle/Resources/views/default": template_style
  83. globals:
  84. show_toolbar: true
  85. show_footer: true
  86. software_name: Chamilo
  87. version: 2
  88. session_teachers:
  89. teachers:
  90. news_counter:
  91. news_list:
  92. messages_count:
  93. message_link:
  94. is_profile_editable:
  95. plugin_footer_left:
  96. plugin_footer_center:
  97. plugin_content_bottom:
  98. plugin_header_left:
  99. plugin_header_center:
  100. plugin_header_right:
  101. plugin_header_main:
  102. plugin_menu_bottom:
  103. plugin_menu_top:
  104. plugin_content_top:
  105. plugin_footer_right:
  106. footer_extra_content:
  107. course_session_block:
  108. show_course_shortcut:
  109. show_course_navigation_menu:
  110. actions:
  111. header:
  112. message:
  113. show_media_element: 1
  114. # Assetic Configuration
  115. assetic:
  116. debug: "%kernel.debug%"
  117. use_controller: false
  118. bundles: [ ]
  119. #java: /usr/bin/java
  120. filters:
  121. cssrewrite: ~
  122. #closure:
  123. # jar: "%kernel.root_dir%/Resources/java/compiler.jar"
  124. #yui_css:
  125. # jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"
  126. # Doctrine Configuration
  127. doctrine:
  128. dbal:
  129. default_connection: default
  130. connections:
  131. default:
  132. driver: pdo_mysql
  133. host: "%database_host%"
  134. port: "%database_port%"
  135. dbname: "%database_name%"
  136. user: "%database_user%"
  137. password: "%database_password%"
  138. charset: UTF8
  139. # if using pdo_sqlite as your database driver:
  140. # 1. add the path in parameters.yml
  141. # e.g. database_path: "%kernel.root_dir%/data/data.db3"
  142. # 2. Uncomment database_path in parameters.yml.dist
  143. # 3. Uncomment next line:
  144. # path: "%database_path%"
  145. types:
  146. json: Sonata\Doctrine\Types\JsonType
  147. orm:
  148. auto_generate_proxy_classes: "%kernel.debug%"
  149. default_entity_manager: default
  150. # auto_mapping: true
  151. entity_managers:
  152. default:
  153. auto_mapping: true
  154. mappings: ~
  155. # Swiftmailer Configuration
  156. swiftmailer:
  157. transport: "%mailer_transport%"
  158. host: "%mailer_host%"
  159. username: "%mailer_user%"
  160. password: "%mailer_password%"
  161. spool: { type: memory }
  162. doctrine_migrations:
  163. dir_name: %kernel.root_dir%/../app/Migrations/Schema/V111
  164. namespace: Application\Migrations\Schema\V111
  165. table_name: version
  166. name: Chamilo Migrations
  167. # Grid default template
  168. #apy_data_grid:
  169. # theme: ChamiloCoreBundle::grid.html.twig
  170. #
  171. stof_doctrine_extensions:
  172. default_locale: "%locale%"
  173. translation_fallback: true
  174. orm:
  175. default:
  176. tree: true
  177. timestampable: true
  178. sluggable: true
  179. sortable: true
  180. #liip_theme:
  181. # themes: ['web', 'tablet', 'phone']
  182. # active_theme: 'web'
  183. # assetic_integration: true
  184. #oneup_flysystem:
  185. # adapters:
  186. # local.adapter:
  187. # local:
  188. # directory: %kernel.root_dir%/courses
  189. ## s3.adapter:
  190. ## awss3v3:
  191. ## client: s3_client # add service "s3_client"
  192. ## bucket: ~
  193. ## prefix: ~
  194. #
  195. # filesystems:
  196. # course:
  197. # adapter: local.adapter
  198. # cache: ~
  199. # alias: ~
  200. # mount: ~
  201. #jms_translation:
  202. # configs:
  203. # app:
  204. # dirs: [%kernel.root_dir%, %kernel.root_dir%/../src]
  205. # output_dir: %kernel.root_dir%/Resources/translations
  206. # ignored_domains: [routes]
  207. # excluded_names: ["*TestCase.php", "*Test.php"]
  208. # excluded_dirs: [cache, data, logs]
  209. ## extractors: [alias_of_the_extractor]
  210. fm_elfinder:
  211. assets_path: /chamilo_master/web/assets
  212. instances:
  213. default:
  214. locale: %locale% # defaults to current request locale
  215. editor: ckeditor # other options are tinymce, tinymce4, form, custom and simple
  216. fullscreen: true # defaults true, applies to simple and ckeditor editors
  217. theme: smoothness # jquery theme
  218. include_assets: true # disable if you want to handle loading of the javascript and css assets yourself
  219. connector:
  220. debug: false # defaults to false
  221. roots: # at least one root must be defined
  222. # uploads:
  223. # show_hidden: false # defaults to false
  224. # driver: LocalFileSystem
  225. # path: uploads
  226. # upload_allow: ['image/png', 'image/jpg', 'image/jpeg']
  227. # upload_deny: ['all']
  228. # upload_max_size: 2M
  229. local:
  230. driver: Flysystem
  231. path: uploads
  232. flysystem:
  233. type: local
  234. options:
  235. local:
  236. path: %kernel.root_dir%/../web/media/
  237. upload_allow: ['all']
  238. #upload_allow: ['image/png', 'image/jpg', 'image/jpeg']
  239. #upload_deny: ['all']
  240. upload_max_size: 2M
  241. #lunetics_locale:
  242. # guessing_order:
  243. # - query
  244. # - router
  245. # - session
  246. # #- browser
  247. # allowed_locales: "%locales%"
  248. knp_menu:
  249. twig: true
  250. #
  251. #hwi_oauth:
  252. # firewall_names: [main]
  253. # resource_owners:
  254. # any_name:
  255. # type: github
  256. # client_id: <client_id>
  257. # client_secret: <client_secret>
  258. #gregwar_captcha:
  259. # Doctrine audit
  260. sonata_doctrine_orm_admin:
  261. audit:
  262. force: false # Audits are set in the admin.yml files with audit:true