Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- security:
- # https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
- encoders:
- CPUserBundleEntityUser: sha512
- role_hierarchy:
- ROLE_ADMIN: ROLE_USER
- ROLE_SUPER_ADMIN: ROLE_ADMIN
- providers:
- main:
- id: fos_user.user_provider.username
- firewalls:
- # disables authentication for assets and the profiler, adapt it according to your needs
- dev:
- pattern: ^/(_(profiler|wdt)|css|images|js)/
- security: false
- main:
- pattern: ^/
- anonymous: true
- provider: main
- form_login:
- login_path: fos_user_security_login
- check_path: fos_user_security_check
- default_target_path: 'show'
- logout:
- path: fos_user_security_logout
- target: fos_user_security_login
- remember_me:
- secret: %secret%
- # activate different ways to authenticate
- # https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
- #http_basic: ~
- # https://symfony.com/doc/current/security/form_login_setup.html
- #form_login: ~
- access_control:
- - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
- - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
- - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
- - { path: ^/admin/, role: ROLE_ADMIN }
- - { path: ^/registered/, role: ROLE_USER }
- imports:
- - { resource: parameters.yml }
- - { resource: security.yml }
- - { resource: services.yml }
- # Put parameters here that don't need to change on each machine where the app is deployed
- # https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
- parameters:
- locale: fr
- images_directory: '%kernel.root_dir%/../web/uploads/Images'
- framework:
- #esi: ~
- translator: { fallbacks: ['%locale%'] }
- secret: '%secret%'
- router:
- resource: '%kernel.project_dir%/app/config/routing.yml'
- strict_requirements: ~
- form: ~
- csrf_protection: ~
- validation: { enable_annotations: true }
- #serializer: { enable_annotations: true }
- default_locale: '%locale%'
- trusted_hosts: ~
- session:
- # https://symfony.com/doc/current/reference/configuration/framework.html#handler-id
- handler_id: session.handler.native_file
- save_path: '%kernel.project_dir%/var/sessions/%kernel.environment%'
- fragments: ~
- http_method_override: true
- assets: ~
- php_errors:
- log: true
- templating:
- engines: ['twig']
- # Twig Configuration
- twig:
- debug: '%kernel.debug%'
- strict_variables: '%kernel.debug%'
- form_themes: ['bootstrap_3_layout.html.twig']
- # Doctrine Configuration
- doctrine:
- dbal:
- driver: pdo_mysql
- host: '%database_host%'
- port: '%database_port%'
- dbname: '%database_name%'
- user: '%database_user%'
- password: '%database_password%'
- charset: UTF8
- # if using pdo_sqlite as your database driver:
- # 1. add the path in parameters.yml
- # e.g. database_path: '%kernel.project_dir%/var/data/data.sqlite'
- # 2. Uncomment database_path in parameters.yml.dist
- # 3. Uncomment next line:
- #path: '%database_path%'
- orm:
- auto_generate_proxy_classes: '%kernel.debug%'
- naming_strategy: doctrine.orm.naming_strategy.underscore
- auto_mapping: true
- # Swiftmailer Configuration
- swiftmailer:
- transport: '%mailer_transport%'
- host: '%mailer_host%'
- username: '%mailer_user%'
- password: '%mailer_password%'
- spool: { type: memory }
- fos_user:
- db_driver: orm
- firewall_name: main
- user_class: CPUserBundleEntityUser
- service:
- mailer: fos_user.mailer.twig_swift
- from_email:
- address: "%mailer_user%"
- sender_name: "%mailer_user%"
- assetic:
- debug: "%kernel.debug%"
- use_controller: false
- bundles: [ ]
- java: /usr/bin/java
- filters:
- cssrewrite: ~
- cssembed:
- jar: "%kernel.root_dir%/Resources/java/cssembed.jar"
- yui_js:
- jar: "%kernel.root_dir%/Resources/java/yuicompressor.jar"
- yui_css:
- jar: "%kernel.root_dir%/Resources/java/yuicompressor.jar"
- lessphp:
- file: "%kernel.root_dir%/../vendor/oyejorge/less.php/lessc.inc.php"
- apply_to: ".less$"
- assets:
- jquery_js:
- inputs:
- - "%kernel.root_dir%/../vendor/components/jquery/jquery.min.js"
- filters: [?yui_js]
- output: js/jquery.min.js
- bootstrap_css:
- inputs:
- - "%kernel.root_dir%/../vendor/twbs/bootstrap/less/bootstrap.less"
- filters:
- - lessphp
- - cssrewrite
- output: css/bootstrap.css
- bootstrap_js:
- inputs:
- - "%kernel.root_dir%/../vendor/twbs/bootstrap/js/affix.js"
- - "%kernel.root_dir%/../vendor/twbs/bootstrap/js/alert.js"
- - "%kernel.root_dir%/../vendor/twbs/bootstrap/js/button.js"
- - "%kernel.root_dir%/../vendor/twbs/bootstrap/js/carousel.js"
- - "%kernel.root_dir%/../vendor/twbs/bootstrap/js/collapse.js"
- - "%kernel.root_dir%/../vendor/twbs/bootstrap/js/dropdown.js"
- - "%kernel.root_dir%/../vendor/twbs/bootstrap/js/modal.js"
- - "%kernel.root_dir%/../vendor/twbs/bootstrap/js/tooltip.js"
- - "%kernel.root_dir%/../vendor/twbs/bootstrap/js/popover.js"
- - "%kernel.root_dir%/../vendor/twbs/bootstrap/js/scrollspy.js"
- - "%kernel.root_dir%/../vendor/twbs/bootstrap/js/tab.js"
- - "%kernel.root_dir%/../vendor/twbs/bootstrap/js/transition.js"
- filters: [?yui_js]
- output: js/bootstrap.js
- fonts_glyphicons_eot:
- inputs:
- - "%kernel.root_dir%/../vendor/twbs/bootstrap/fonts/glyphicons-halflings-regular.eot"
- output: "fonts/glyphicons-halflings-regular.eot"
- fonts_glyphicons_svg:
- inputs:
- - "%kernel.root_dir%/../vendor/twbs/bootstrap/fonts/glyphicons-halflings-regular.svg"
- output: "fonts/glyphicons-halflings-regular.svg"
- fonts_glyphicons_ttf:
- inputs:
- - "%kernel.root_dir%/../vendor/twbs/bootstrap/fonts/glyphicons-halflings-regular.ttf"
- output: "fonts/glyphicons-halflings-regular.ttf"
- fonts_glyphicons_woff:
- inputs:
- - "%kernel.root_dir%/../vendor/twbs/bootstrap/fonts/glyphicons-halflings-regular.woff"
- output: "fonts/glyphicons-halflings-regular.woff"
- knp_paginator:
- page_range: 5
- default_options:
- page_name: page
- sort_field_name: sort
- sort_direction_name: direction
- distinct: true
- template:
- pagination: 'KnpPaginatorBundle:Pagination:twitter_bootstrap_v3_pagination.html.twig'
- sortable : 'KnpPaginatorBundle:Pagination:sortable_link.html.twig'
- ame Method Scheme Host Path
- ----------------------------------- ---------- -------- ------ -------------------------------------------------
- _wdt ANY ANY ANY /_wdt/{token}
- _profiler_home ANY ANY ANY /_profiler/
- _profiler_search ANY ANY ANY /_profiler/search
- _profiler_search_bar ANY ANY ANY /_profiler/search_bar
- _profiler_phpinfo ANY ANY ANY /_profiler/phpinfo
- _profiler_search_results ANY ANY ANY /_profiler/{token}/search/results
- _profiler_open_file ANY ANY ANY /_profiler/open
- _profiler ANY ANY ANY /_profiler/{token}
- _profiler_router ANY ANY ANY /_profiler/{token}/router
- _profiler_exception ANY ANY ANY /_profiler/{token}/exception
- _profiler_exception_css ANY ANY ANY /_profiler/{token}/exception.css
- _twig_error_test ANY ANY ANY /_error/{code}.{_format}
- cp_user_homepage ANY ANY ANY /
- deleteAnnonce ANY ANY ANY /registered/{_locale}/user/delete/{id}
- addAnnonce ANY ANY ANY /registered/{_locale}/user/add
- editAnnonce ANY ANY ANY /registered/{_locale}/user/edit/{id}
- home ANY ANY ANY /registered/{_locale}/user/home
- addComment ANY ANY ANY /{_locale}/Annonce/Comment/user/addcomment/{id}
- show ANY ANY ANY /{_locale}/home/show/{id}
- Annonce_index ANY ANY ANY /{_locale}/home/index
- acceuil ANY ANY ANY /{_locale}/home/
- homepage ANY ANY ANY /
- fos_user_security_login GET|POST ANY ANY /login
- fos_user_security_check POST ANY ANY /login_check
- fos_user_security_logout GET|POST ANY ANY /logout
- fos_user_profile_show GET ANY ANY /profile/
- fos_user_profile_edit GET|POST ANY ANY /profile/edit
- fos_user_registration_register GET|POST ANY ANY /register/
- fos_user_registration_check_email GET ANY ANY /register/check-email
- fos_user_registration_confirm GET ANY ANY /register/confirm/{token}
- fos_user_registration_confirmed GET ANY ANY /register/confirmed
- fos_user_resetting_request GET ANY ANY /resetting/request
- fos_user_resetting_send_email POST ANY ANY /resetting/send-email
- fos_user_resetting_check_email GET ANY ANY /resetting/check-email
- fos_user_resetting_reset GET|POST ANY ANY /resetting/reset/{token}
- fos_user_change_password GET|POST ANY ANY /profile/change-password
- ----------------------------------- ---------- -------- ------ -------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement