config.yml 9.1 KB

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