Advertisement
Guest User

Untitled

a guest
Mar 9th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.95 KB | None | 0 0
  1. security:
  2.  
  3. # https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
  4. encoders:
  5. CPUserBundleEntityUser: sha512
  6.  
  7. role_hierarchy:
  8. ROLE_ADMIN: ROLE_USER
  9. ROLE_SUPER_ADMIN: ROLE_ADMIN
  10.  
  11. providers:
  12. main:
  13. id: fos_user.user_provider.username
  14.  
  15.  
  16. firewalls:
  17. # disables authentication for assets and the profiler, adapt it according to your needs
  18. dev:
  19. pattern: ^/(_(profiler|wdt)|css|images|js)/
  20. security: false
  21.  
  22. main:
  23. pattern: ^/
  24. anonymous: true
  25. provider: main
  26. form_login:
  27. login_path: fos_user_security_login
  28. check_path: fos_user_security_check
  29. default_target_path: 'show'
  30. logout:
  31. path: fos_user_security_logout
  32. target: fos_user_security_login
  33. remember_me:
  34. secret: %secret%
  35. # activate different ways to authenticate
  36.  
  37. # https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
  38. #http_basic: ~
  39.  
  40. # https://symfony.com/doc/current/security/form_login_setup.html
  41. #form_login: ~
  42. access_control:
  43. - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
  44. - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
  45. - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
  46. - { path: ^/admin/, role: ROLE_ADMIN }
  47. - { path: ^/registered/, role: ROLE_USER }
  48.  
  49. imports:
  50. - { resource: parameters.yml }
  51. - { resource: security.yml }
  52. - { resource: services.yml }
  53.  
  54. # Put parameters here that don't need to change on each machine where the app is deployed
  55. # https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
  56. parameters:
  57. locale: fr
  58. images_directory: '%kernel.root_dir%/../web/uploads/Images'
  59.  
  60. framework:
  61. #esi: ~
  62. translator: { fallbacks: ['%locale%'] }
  63. secret: '%secret%'
  64. router:
  65. resource: '%kernel.project_dir%/app/config/routing.yml'
  66. strict_requirements: ~
  67. form: ~
  68. csrf_protection: ~
  69. validation: { enable_annotations: true }
  70. #serializer: { enable_annotations: true }
  71. default_locale: '%locale%'
  72. trusted_hosts: ~
  73. session:
  74. # https://symfony.com/doc/current/reference/configuration/framework.html#handler-id
  75. handler_id: session.handler.native_file
  76. save_path: '%kernel.project_dir%/var/sessions/%kernel.environment%'
  77. fragments: ~
  78. http_method_override: true
  79. assets: ~
  80. php_errors:
  81. log: true
  82. templating:
  83. engines: ['twig']
  84.  
  85. # Twig Configuration
  86. twig:
  87. debug: '%kernel.debug%'
  88. strict_variables: '%kernel.debug%'
  89. form_themes: ['bootstrap_3_layout.html.twig']
  90.  
  91. # Doctrine Configuration
  92. doctrine:
  93. dbal:
  94. driver: pdo_mysql
  95. host: '%database_host%'
  96. port: '%database_port%'
  97. dbname: '%database_name%'
  98. user: '%database_user%'
  99. password: '%database_password%'
  100. charset: UTF8
  101. # if using pdo_sqlite as your database driver:
  102. # 1. add the path in parameters.yml
  103. # e.g. database_path: '%kernel.project_dir%/var/data/data.sqlite'
  104. # 2. Uncomment database_path in parameters.yml.dist
  105. # 3. Uncomment next line:
  106. #path: '%database_path%'
  107.  
  108. orm:
  109. auto_generate_proxy_classes: '%kernel.debug%'
  110. naming_strategy: doctrine.orm.naming_strategy.underscore
  111. auto_mapping: true
  112.  
  113. # Swiftmailer Configuration
  114. swiftmailer:
  115. transport: '%mailer_transport%'
  116. host: '%mailer_host%'
  117. username: '%mailer_user%'
  118. password: '%mailer_password%'
  119. spool: { type: memory }
  120.  
  121. fos_user:
  122. db_driver: orm
  123. firewall_name: main
  124. user_class: CPUserBundleEntityUser
  125. service:
  126. mailer: fos_user.mailer.twig_swift
  127. from_email:
  128. address: "%mailer_user%"
  129. sender_name: "%mailer_user%"
  130.  
  131. assetic:
  132. debug: "%kernel.debug%"
  133. use_controller: false
  134. bundles: [ ]
  135. java: /usr/bin/java
  136. filters:
  137. cssrewrite: ~
  138. cssembed:
  139. jar: "%kernel.root_dir%/Resources/java/cssembed.jar"
  140. yui_js:
  141. jar: "%kernel.root_dir%/Resources/java/yuicompressor.jar"
  142. yui_css:
  143. jar: "%kernel.root_dir%/Resources/java/yuicompressor.jar"
  144. lessphp:
  145. file: "%kernel.root_dir%/../vendor/oyejorge/less.php/lessc.inc.php"
  146. apply_to: ".less$"
  147. assets:
  148. jquery_js:
  149. inputs:
  150. - "%kernel.root_dir%/../vendor/components/jquery/jquery.min.js"
  151. filters: [?yui_js]
  152. output: js/jquery.min.js
  153. bootstrap_css:
  154. inputs:
  155. - "%kernel.root_dir%/../vendor/twbs/bootstrap/less/bootstrap.less"
  156. filters:
  157. - lessphp
  158. - cssrewrite
  159. output: css/bootstrap.css
  160. bootstrap_js:
  161. inputs:
  162. - "%kernel.root_dir%/../vendor/twbs/bootstrap/js/affix.js"
  163. - "%kernel.root_dir%/../vendor/twbs/bootstrap/js/alert.js"
  164. - "%kernel.root_dir%/../vendor/twbs/bootstrap/js/button.js"
  165. - "%kernel.root_dir%/../vendor/twbs/bootstrap/js/carousel.js"
  166. - "%kernel.root_dir%/../vendor/twbs/bootstrap/js/collapse.js"
  167. - "%kernel.root_dir%/../vendor/twbs/bootstrap/js/dropdown.js"
  168. - "%kernel.root_dir%/../vendor/twbs/bootstrap/js/modal.js"
  169. - "%kernel.root_dir%/../vendor/twbs/bootstrap/js/tooltip.js"
  170. - "%kernel.root_dir%/../vendor/twbs/bootstrap/js/popover.js"
  171. - "%kernel.root_dir%/../vendor/twbs/bootstrap/js/scrollspy.js"
  172. - "%kernel.root_dir%/../vendor/twbs/bootstrap/js/tab.js"
  173. - "%kernel.root_dir%/../vendor/twbs/bootstrap/js/transition.js"
  174. filters: [?yui_js]
  175. output: js/bootstrap.js
  176. fonts_glyphicons_eot:
  177. inputs:
  178. - "%kernel.root_dir%/../vendor/twbs/bootstrap/fonts/glyphicons-halflings-regular.eot"
  179. output: "fonts/glyphicons-halflings-regular.eot"
  180. fonts_glyphicons_svg:
  181. inputs:
  182.  
  183.  
  184. - "%kernel.root_dir%/../vendor/twbs/bootstrap/fonts/glyphicons-halflings-regular.svg"
  185. output: "fonts/glyphicons-halflings-regular.svg"
  186. fonts_glyphicons_ttf:
  187. inputs:
  188. - "%kernel.root_dir%/../vendor/twbs/bootstrap/fonts/glyphicons-halflings-regular.ttf"
  189. output: "fonts/glyphicons-halflings-regular.ttf"
  190. fonts_glyphicons_woff:
  191. inputs:
  192. - "%kernel.root_dir%/../vendor/twbs/bootstrap/fonts/glyphicons-halflings-regular.woff"
  193. output: "fonts/glyphicons-halflings-regular.woff"
  194.  
  195. knp_paginator:
  196. page_range: 5
  197. default_options:
  198. page_name: page
  199. sort_field_name: sort
  200. sort_direction_name: direction
  201. distinct: true
  202. template:
  203. pagination: 'KnpPaginatorBundle:Pagination:twitter_bootstrap_v3_pagination.html.twig'
  204. sortable : 'KnpPaginatorBundle:Pagination:sortable_link.html.twig'
  205.  
  206. ame Method Scheme Host Path
  207. ----------------------------------- ---------- -------- ------ -------------------------------------------------
  208. _wdt ANY ANY ANY /_wdt/{token}
  209. _profiler_home ANY ANY ANY /_profiler/
  210. _profiler_search ANY ANY ANY /_profiler/search
  211. _profiler_search_bar ANY ANY ANY /_profiler/search_bar
  212. _profiler_phpinfo ANY ANY ANY /_profiler/phpinfo
  213. _profiler_search_results ANY ANY ANY /_profiler/{token}/search/results
  214. _profiler_open_file ANY ANY ANY /_profiler/open
  215. _profiler ANY ANY ANY /_profiler/{token}
  216. _profiler_router ANY ANY ANY /_profiler/{token}/router
  217. _profiler_exception ANY ANY ANY /_profiler/{token}/exception
  218. _profiler_exception_css ANY ANY ANY /_profiler/{token}/exception.css
  219. _twig_error_test ANY ANY ANY /_error/{code}.{_format}
  220. cp_user_homepage ANY ANY ANY /
  221. deleteAnnonce ANY ANY ANY /registered/{_locale}/user/delete/{id}
  222. addAnnonce ANY ANY ANY /registered/{_locale}/user/add
  223. editAnnonce ANY ANY ANY /registered/{_locale}/user/edit/{id}
  224. home ANY ANY ANY /registered/{_locale}/user/home
  225. addComment ANY ANY ANY /{_locale}/Annonce/Comment/user/addcomment/{id}
  226. show ANY ANY ANY /{_locale}/home/show/{id}
  227. Annonce_index ANY ANY ANY /{_locale}/home/index
  228. acceuil ANY ANY ANY /{_locale}/home/
  229. homepage ANY ANY ANY /
  230. fos_user_security_login GET|POST ANY ANY /login
  231. fos_user_security_check POST ANY ANY /login_check
  232. fos_user_security_logout GET|POST ANY ANY /logout
  233. fos_user_profile_show GET ANY ANY /profile/
  234. fos_user_profile_edit GET|POST ANY ANY /profile/edit
  235. fos_user_registration_register GET|POST ANY ANY /register/
  236. fos_user_registration_check_email GET ANY ANY /register/check-email
  237. fos_user_registration_confirm GET ANY ANY /register/confirm/{token}
  238. fos_user_registration_confirmed GET ANY ANY /register/confirmed
  239. fos_user_resetting_request GET ANY ANY /resetting/request
  240. fos_user_resetting_send_email POST ANY ANY /resetting/send-email
  241. fos_user_resetting_check_email GET ANY ANY /resetting/check-email
  242. fos_user_resetting_reset GET|POST ANY ANY /resetting/reset/{token}
  243. fos_user_change_password GET|POST ANY ANY /profile/change-password
  244. ----------------------------------- ---------- -------- ------ -------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement