daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Jun 30th, 2018 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. imports:
  2.     - { resource: parameters.ini }
  3.     - { resource: security.yml }
  4.  
  5. framework:
  6.    #esi:             ~
  7.     secret:         %secret%
  8.     charset:        UTF-8
  9.     router:         { resource: "%kernel.root_dir%/config/routing.yml" }
  10.     form:           true
  11. #    csrf_protection: true
  12.     csrf_protection:
  13.       enabled: true
  14.     validation:     { enable_annotations: true }
  15.     templating:     { engines: ['twig'] } #assets_version: SomeVersionScheme
  16.     session:
  17. #        default_locale: %locale%
  18.         auto_start:    true
  19.         lifetime: 14400;
  20.     translator: { fallback: en }
  21.  
  22. # Twig Configuration
  23. twig:
  24.     debug: %kernel.debug%
  25.     strict_variables: %kernel.debug%
  26.     form:
  27.         resources:
  28.             - SdPeopleBundle::form.html.twig
  29.  
  30. # Assetic Configuration
  31. assetic:
  32.     debug:         %kernel.debug%
  33.     use_controller: false
  34. #    filters:
  35. #        cssrewrite: ~
  36.         # closure:
  37.         #     jar: %kernel.root_dir%/java/compiler.jar
  38.         # yui_css:
  39.         #     jar: %kernel.root_dir%/java/yuicompressor-2.4.2.jar
  40.  
  41. # Doctrine Configuration
  42. #doctrine:
  43. #    dbal:
  44. #        driver:   %database_driver%
  45. #        host:     %database_host%
  46. #        dbname:   %database_name%
  47. #        user:     %database_user%
  48. #        password: %database_password%
  49. #        charset:  UTF8
  50. #    orm:
  51. #        auto_generate_proxy_classes: %kernel.debug%
  52. #        auto_mapping: true
  53.  
  54. doctrine_mongodb:
  55.     connections:
  56.         default:
  57.             server: mongodb://localhost:27017
  58.             options:
  59.                 connect: true
  60.     default_database: tpn
  61.     document_managers:
  62.         default:
  63.             mappings:
  64.               SdPeopleBundle: ~
  65.             auto_mapping: true
  66.     auto_generate_hydrator_classes: true
  67. #    logger_class: Symfony\Bundle\DoctrineMongoDBBundle\Logger\DoctrineMongoDBLogger
  68.  
  69. stof_doctrine_extensions:
  70.     default_locale: en_US
  71. #    orm:
  72. #        default: ~
  73.     mongodb:
  74.         default:  
  75.             timestampable: true
  76.  
  77. # Swiftmailer Configuration
  78. swiftmailer:
  79.     transport: %mailer_transport%
  80.     host:     %mailer_host%
  81.     username: %mailer_user%
  82.     password: %mailer_password%
  83.  
  84. #jms_security_extra:
  85. #    secure_controllers:  true
  86. #    secure_all_services: false
  87.  
  88. fos_user:
  89.     use_username_form_type: true    
  90.     db_driver: mongodb
  91.     firewall_name: main
  92.     user_class: %sd_people.user_class%
  93.     profile:
  94.         form:
  95.             type: sd_user_profile
  96.             handler:           fos_user.profile.form.handler.default
  97.             name:              fos_user_profile_form
  98.             validation_groups: [Profile]
  99.     registration:
  100.         form:
  101.             handler:           sd_user_registration_handler
  102.             type: sd_user_registration_form
  103.            
  104. services:
  105.  
  106.     my_provider:    
  107.         parent: doctrine.odm.mongodb.security.user.provider
  108.         arguments: [ Sd\PeopleBundle\Document\User, username]
  109.        
  110.     range:
  111.         class: Sd\PeopleBundle\Form\Type\RangeType
  112.         tags:
  113.             - { name: form.type, alias: range }
  114.     sd_user_profile:
  115.         class: Sd\PeopleBundle\Form\Type\ProfileFormType
  116.         tags:
  117.             -  { name: form.type }
  118.         arguments: [ @odm ]
  119.     sd_user_registration_form:
  120.         class: Sd\PeopleBundle\Form\Type\RegistrationFormType
  121.         tags:
  122.             - { name: form.type }
  123.         arguments: [ Sd\PeopleBundle\Document\TalentUser ]
  124.     sd_user_registration_handler:
  125.         scope: request
  126.         class: Sd\PeopleBundle\Form\Handler\RegistrationFormHandler
  127.         arguments: [ @fos_user.registration.form, @request, @fos_user.user_manager, @fos_user.mailer ]
  128.     sd_notifier:
  129.         class: Sd\PeopleBundle\Notifier
  130. #        arguments: [ @odm, @mailer, @router ]
  131.         arguments: [ @odm, @templating ]
  132.    
  133.     sd_user.api:
  134.          class: Sd\PeopleBundle\Controller\ApiControllerss
  135.          arguments: [@security.context, @security.authentication.manager]
  136.        
  137.     odm:
  138.         alias: doctrine.odm.mongodb.default_document_manager    
  139.    
  140.     sd_user.sd_people_email:
  141.         class: Sd\PeopleBundle\Form\Type\UsernameEmailFormType
  142.         arguments: [@sd_user.username_to_email_transformer]
  143.         tags:
  144.            - { name: form.type, alias: sd_people_email }
  145.    
  146.     sd_user.username_to_email_transformer:
  147.         class: Sd\PeopleBundle\Form\DataTransformer\UsernameToEmailTransformer
  148.         arguments: [@fos_user.user_manager]        
  149.    
  150.     serializer.method:
  151.         class: Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer
  152.     serializer.encoder.json:
  153.         class: Symfony\Component\Serializer\Encoder\JsonEncoder
  154.     serializer:
  155.         class: Symfony\Component\Serializer\Serializer
  156.         arguments:
  157.            - [@serializer.method]
  158.             - {json: @serializer.encoder.json }
  159.    
  160.     wsse.security.authentication.provider:
  161.         class: Sd\PeopleBundle\Security\Authentication\Provider\WsseProvider
  162.         arguments: ['', %kernel.cache_dir%/security/nonces]
  163.        
  164.     wsse.security.authentication.listener:
  165.         class: Sd\PeopleBundle\Security\Firewall\WsseListener
  166.         arguments: [@security.context, @security.authentication.manager]
  167.     webservice_user_provider:
  168.         class: %webservice_user_provider.class%
  169.     twig.extension.text:
  170.      class: Twig_Extensions_Extension_Text
  171.      tags:
  172.          - { name: twig.extension }
  173.    
  174.     kernel.listener.access_denied_interface.handler:
  175.       class: Sd\PeopleBundle\Security\AccessDeniedHandler
  176.       tags:
  177.         - { name: kernel.event_listener event: security.kernel_response }
  178. parameters:
  179.     sd_people.user_class: Sd\PeopleBundle\Document\User
  180.     secret: t3hpplz
  181.     webservice_user_provider.class: Sd\PeopleBundle\Security\User\WebserviceUserProvider
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top