Advertisement
Guest User

config.yml

a guest
Nov 18th, 2013
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 5.02 KB | None | 0 0
  1. imports:
  2.     - { resource: parameters.yml }
  3.     - { resource: security.yml }
  4.  
  5. framework:
  6.    #esi:             ~
  7.     #translator:      { fallback: %locale% }
  8.     secret:         %secret%
  9.     router:
  10.         resource: "%kernel.root_dir%/config/routing.yml"
  11.         strict_requirements: ~
  12.     form:           ~
  13.     csrf_protection: ~
  14.     validation:     { enable_annotations: true }
  15.     templating:
  16.         engines: ['twig','php']
  17.         #assets_version: SomeVersionScheme
  18.     default_locale: cz
  19.     trusted_proxies: ~
  20.     session:        ~
  21.     fragments:      ~
  22.     http_method_override: true
  23.     translator: { fallback: cz }
  24.  
  25. # Twig Configuration
  26. twig:
  27.     debug:           %kernel.debug%
  28.     strict_variables: %kernel.debug%
  29.  
  30. # Assetic Configuration
  31. assetic:
  32.     debug:         %kernel.debug%
  33.     use_controller: false
  34.     bundles:       [ ]
  35.     #java: /usr/bin/java
  36.     filters:
  37.         cssrewrite: ~
  38.         #closure:
  39.         #    jar: %kernel.root_dir%/Resources/java/compiler.jar
  40.         #yui_css:
  41.         #    jar: %kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar
  42.  
  43. # Doctrine Configuration
  44. doctrine:
  45.     dbal:
  46.         driver:  %database_driver%
  47.         host:    %database_host%
  48.         port:    %database_port%
  49.         dbname:  %database_name%
  50.         user:    %database_user%
  51.         password: %database_password%
  52.         charset: UTF8
  53.         # if using pdo_sqlite as your database driver, add the path in parameters.yml
  54.         # e.g. database_path: %kernel.root_dir%/data/data.db3
  55.         # path:     %database_path%
  56.  
  57.     orm:
  58.         auto_generate_proxy_classes: %kernel.debug%
  59.         auto_mapping: true
  60. #        filters:
  61. #                    softdeleteable:
  62. #                        class: Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter
  63. #                        enabled: true
  64.         mappings:
  65.                     gedmo_translatable:
  66.                         type: annotation
  67.                         prefix: Gedmo\Translatable\Entity
  68.                         dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translatable/Entity"
  69.                         alias: GedmoTranslatable # this one is optional and will default to the name set for the mapping
  70.                         is_bundle: false
  71.                     gedmo_translator:
  72.                         type: annotation
  73.                         prefix: Gedmo\Translator\Entity
  74.                         dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translator/Entity"
  75.                         alias: GedmoTranslator # this one is optional and will default to the name set for the mapping
  76.                         is_bundle: false
  77.                     gedmo_loggable:
  78.                         type: annotation
  79.                         prefix: Gedmo\Loggable\Entity
  80.                         dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Loggable/Entity"
  81.                         alias: GedmoLoggable # this one is optional and will default to the name set for the mapping
  82.                         is_bundle: false
  83.                     gedmo_tree:
  84.                         type: annotation
  85.                         prefix: Gedmo\Tree\Entity
  86.                         dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Entity"
  87.                         alias: GedmoTree # this one is optional and will default to the name set for the mapping
  88.                         is_bundle: false
  89.  
  90. stof_doctrine_extensions:
  91.     default_locale: cz
  92.  
  93.     # Only used if you activated the Uploadable extension
  94.     uploadable:
  95.        # Default file path: This is one of the three ways you can configure the path for the Uploadable extension
  96.         default_file_path:      %kernel.root_dir%/../web/uploads
  97.  
  98.         # Mime type guesser class: Optional. By default, we provide an adapter for the one present in the HttpFoundation component of Symfony
  99.         mime_type_guesser_class: Stof\DoctrineExtensionsBundle\Uploadable\MimeTypeGuesserAdapter
  100.  
  101.         # Default file info class implementing FileInfoInterface: Optional. By default we provide a class which is prepared to receive an UploadedFile instance.
  102.         default_file_info_class: Stof\DoctrineExtensionsBundle\Uploadable\UploadedFileInfo
  103.     orm:
  104.         default:
  105.             tree: true
  106.             timestampable: true
  107.             uploadable: true
  108.            
  109.        
  110. # Swiftmailer Configuration
  111. swiftmailer:
  112.       transport:           smtp
  113.       username:            
  114.       password:            
  115.       host:                
  116.       port:                465
  117.       encryption:          ssl
  118.  
  119.  
  120. services:
  121.    # Doctrine Extension listeners to handle behaviors
  122.     gedmo.listener.translatable:
  123.         class: Gedmo\Translatable\TranslatableListener
  124.         tags:
  125.             - { name: doctrine.event_subscriber, connection: default }
  126.         calls:
  127.            - [ setAnnotationReader, [ @annotation_reader ] ]
  128.             - [ setDefaultLocale, [ cz ] ]
  129.             - [ setTranslationFallback, [ true ] ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement