Advertisement
spectre59390

Untitled

Aug 16th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.95 KB | None | 0 0
  1. imports:
  2.     - { resource: parameters.yml }
  3.     - { resource: security.yml }
  4.     - { resource: services.yml }
  5.  
  6. # Put parameters here that don't need to change on each machine where the app is deployed
  7. # http://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
  8. parameters:
  9.     locale: fr
  10.     img_product_directory: '%kernel.root_dir%/../web/img/product'
  11.     img_posts_directory: '%kernel.root_dir%/../web/img/posts'
  12.     img_fixture: '%kernel.root_dir%/../web/img/fixtures'
  13.  
  14. framework:
  15.     #esi:             ~
  16.     #translator:      { fallbacks: ["%locale%"] }
  17.     secret:          "%secret%"
  18.     router:
  19.         resource: "%kernel.root_dir%/config/routing.yml"
  20.         strict_requirements: ~
  21.     form:            ~
  22.     csrf_protection: ~
  23.     validation:      { enable_annotations: true }
  24.     # serializer:      { enable_annotations: true }
  25.     serializer: true
  26.     templating:
  27.         engines: ['twig']
  28.     default_locale:  "%locale%"
  29.     trusted_hosts:   ~
  30.     trusted_proxies: ~
  31.     session:
  32.         # http://symfony.com/doc/current/reference/configuration/framework.html#handler-id
  33.         handler_id:  session.handler.native_file
  34.         save_path:   "%kernel.root_dir%/../var/sessions/%kernel.environment%"
  35.         cookie_lifetime: 5400
  36.         gc_maxlifetime: 20
  37.         cookie_domain: 'www.mealandbox.fr'
  38.     fragments:       ~
  39.     http_method_override: true
  40.     assets: ~
  41.  
  42. # Twig Configuration
  43. twig:
  44.     debug:            "%kernel.debug%"
  45.     strict_variables: "%kernel.debug%"
  46.     form_theme:
  47.         'bootstrap_3_layout.html.twig'
  48.  
  49. # Doctrine Configuration
  50. doctrine:
  51.     dbal:
  52.         driver:   pdo_mysql
  53.         host:     "%database_host%"
  54.         dbname:   "%database_name%"
  55.         user:     "%database_user%"
  56.         password: "%database_password%"
  57.         port:     "%database_port%"
  58.         charset:  UTF8
  59.         mapping_types:
  60.             enum: string
  61.  
  62.         # if using pdo_sqlite as your database driver:
  63.         #   1. add the path in parameters.yml
  64.         #     e.g. database_path: "%kernel.root_dir%/data/data.db3"
  65.         #   2. Uncomment database_path in parameters.yml.dist
  66.         #   3. Uncomment next line:
  67.         #     path:     "%database_path%"
  68.  
  69.     orm:
  70.         auto_generate_proxy_classes: "%kernel.debug%"
  71.         naming_strategy: doctrine.orm.naming_strategy.underscore
  72.         auto_mapping: true
  73.  
  74. # Swiftmailer Configuration
  75. swiftmailer:
  76.     transport: '%mailer_transport%'
  77.     host:      '%mailer_host%'
  78.     username:  '%mailer_user%'
  79.     password:  '%mailer_password%'
  80.     spool:     { type: memory }
  81. # app/config/config.yml
  82. # hwi_oauth:
  83. #     resource_owners:
  84. #         facebook:
  85. #             type:                resource_owner_of_choice
  86. #             client_id:           <client_id>
  87. #             client_secret:       <client_secret>
  88. #             options:
  89. #                 csrf: true
  90. fos_js_routing:
  91.     routes_to_expose: [page_moncompte_resetpassword,admin_utilisateurs_filter,panierpage,deleteproductpage,productdetailpage,productfilterpage,changeQuantity]
  92.  
  93. white_october_breadcrumbs:
  94.     separator:          ''
  95.     separatorClass:     'sepaseparatorrator'
  96.     listId:             'wo-breadcrumbs'
  97.     listClass:          'breadcrumb'
  98.     itemClass:          ''
  99.     linkRel:            ''
  100.     locale:             ~ # defaults to null, so the default locale is used
  101.     translation_domain: ~ # defaults to null, so the default domain is used
  102.     viewTemplate:       'WhiteOctoberBreadcrumbsBundle::breadcrumbs.html.twig'
  103.  
  104. # pdf creator
  105. knp_snappy:  
  106.     pdf:
  107.         enabled:    true
  108.         binary:     '%kernel.root_dir%/../vendor/h4cc/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64'
  109.         options:
  110.             - { name: 'viewport-size', value: ‘1024x768’ }
  111.             - { name: 'page-size', value: 'A4' }
  112. jms_serializer:
  113.     handlers:
  114.         datetime:
  115.             default_format: "Y-m-d\\TH:i:sP"
  116.             default_timezone: "UTC"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement