app/config/config.yml
author ymh <ymh.work@gmail.com>
Tue, 20 Mar 2012 12:40:58 +0100
changeset 81 ab53cabaeb0b
parent 75 72e6905b3619
child 89 8175fa8d5812
permissions -rwxr-xr-x
uupgrade subrepo
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
imports:
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
    - { resource: parameters.ini }
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
    - { resource: security.yml }
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
framework:
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
    #esi:             ~
5
d8cb31543a3f translation and override FOSUserBundle layout
ymh <ymh.work@gmail.com>
parents: 3
diff changeset
     7
    translator:      { fallback: %locale% }
0
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
    secret:          %secret%
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
    charset:         UTF-8
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
    router:          { resource: "%kernel.root_dir%/config/routing.yml" }
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
    form:            true
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
    csrf_protection: true
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
    validation:      { enable_annotations: true }
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
    templating:      { engines: ['twig'] } #assets_version: SomeVersionScheme
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
    session:
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
        default_locale: %locale%
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
        auto_start:     true
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
# Twig Configuration
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
twig:
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
    debug:            %kernel.debug%
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
    strict_variables: %kernel.debug%
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
# Assetic Configuration
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
assetic:
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    26
    debug:          %kernel.debug%
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
    use_controller: false
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    28
    filters:
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
        cssrewrite: ~
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    30
        # closure:
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    31
        #     jar: %kernel.root_dir%/java/compiler.jar
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    32
        # yui_css:
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    33
        #     jar: %kernel.root_dir%/java/yuicompressor-2.4.2.jar
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    34
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    35
# Doctrine Configuration
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    36
doctrine:
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    37
    dbal:
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    38
        driver:   %database_driver%
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    39
        host:     %database_host%
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    40
        port:     %database_port%
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    41
        dbname:   %database_name%
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    42
        user:     %database_user%
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    43
        password: %database_password%
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    44
        charset:  UTF8
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    45
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    46
    orm:
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    47
        auto_generate_proxy_classes: %kernel.debug%
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    48
        auto_mapping: true
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    49
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    50
# Swiftmailer Configuration
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    51
swiftmailer:
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    52
    transport: %mailer_transport%
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    53
    host:      %mailer_host%
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    54
    username:  %mailer_user%
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    55
    password:  %mailer_password%
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    56
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    57
jms_security_extra:
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    58
    secure_controllers:  true
7f95f8617b0b first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    59
    secure_all_services: false
3
e54dfe4d0b2b add FOSUserBundle
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    60
e54dfe4d0b2b add FOSUserBundle
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    61
fos_user:
e54dfe4d0b2b add FOSUserBundle
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    62
    db_driver: orm # other valid values are 'mongodb', 'couchdb'
e54dfe4d0b2b add FOSUserBundle
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    63
    firewall_name: main
e54dfe4d0b2b add FOSUserBundle
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    64
    user_class: Company\UserBundle\Entity\User
18
c85b9d1ddf19 first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    65
    
c85b9d1ddf19 first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    66
wiki_tag:
22
c41d4e7759e1 add route parameter
ymh <ymh.work@gmail.com>
parents: 19
diff changeset
    67
    route_for_documents_by_tag: company_other
18
c85b9d1ddf19 first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    68
    document_class: Company\BaseBundle\Entity\Document
19
c061708be5e4 finish dynamic save of documents
ymh <ymh.work@gmail.com>
parents: 18
diff changeset
    69
    document_id_column: id
64
97ddfdc8bdde improve search test and doc
ymh <ymh.work@gmail.com>
parents: 61
diff changeset
    70
    ignore_wikipedia_error: false
18
c85b9d1ddf19 first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    71
    fields:
c85b9d1ddf19 first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    72
        title:
c85b9d1ddf19 first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    73
            type: string
c85b9d1ddf19 first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    74
            length: 1024
c85b9d1ddf19 first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    75
            accessor: getTitle
29
a30208a2bb60 add weight on fields
ymh <ymh.work@gmail.com>
parents: 24
diff changeset
    76
            weight: 1.0
18
c85b9d1ddf19 first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    77
        description:
c85b9d1ddf19 first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    78
            type: text
29
a30208a2bb60 add weight on fields
ymh <ymh.work@gmail.com>
parents: 24
diff changeset
    79
            weight: 0.5
61
9f427e7c88f9 Correct event mamangement in hdabo_sf
ymh <ymh.work@gmail.com>
parents: 48
diff changeset
    80
        categories:
9f427e7c88f9 Correct event mamangement in hdabo_sf
ymh <ymh.work@gmail.com>
parents: 48
diff changeset
    81
            type: text
9f427e7c88f9 Correct event mamangement in hdabo_sf
ymh <ymh.work@gmail.com>
parents: 48
diff changeset
    82
            accessor: getCategoriesStr
9f427e7c88f9 Correct event mamangement in hdabo_sf
ymh <ymh.work@gmail.com>
parents: 48
diff changeset
    83
            weight: 1.5
31
f457dd0e7a1e First step to add context search to a page. Works fine but needs to be improved with several list of selectors.
cavaliet
parents: 29
diff changeset
    84
    # reactive_selectors is a list of jQuery selectors meant to let appear tag context search by selecting text.
35
382573c64e16 Context search v1 is finished. Context allowing various configuration is set. Css and templates are clearly set.
cavaliet
parents: 34
diff changeset
    85
    # Example of list : [ '.any_class', '#any_div .p_class', '#another_selector' ]. Write [ 'document' ] if you want the whole document/page to be reactive.
31
f457dd0e7a1e First step to add context search to a page. Works fine but needs to be improved with several list of selectors.
cavaliet
parents: 29
diff changeset
    86
    # Do not define reactive_selectors if you want nothing to be reactive.
35
382573c64e16 Context search v1 is finished. Context allowing various configuration is set. Css and templates are clearly set.
cavaliet
parents: 34
diff changeset
    87
    reactive_selectors:
382573c64e16 Context search v1 is finished. Context allowing various configuration is set. Css and templates are clearly set.
cavaliet
parents: 34
diff changeset
    88
        all:      [ '.left_sheet', '#p_title .sheet_title', '#p_description' ]
382573c64e16 Context search v1 is finished. Context allowing various configuration is set. Css and templates are clearly set.
cavaliet
parents: 34
diff changeset
    89
        only_p:   [ '#p_title .sheet_title', '#p_description' ]
382573c64e16 Context search v1 is finished. Context allowing various configuration is set. Css and templates are clearly set.
cavaliet
parents: 34
diff changeset
    90
        document: [ 'document' ]
45
9ef0dc99e100 Change config commit
cavaliet
parents: 43
diff changeset
    91
    # document_list_profile is the list of the columns displayed in a document's tag list, AND the button to sort tags.
47
9b00414477ab icon images in css, little debug, update document profile configuration
cavaliet
parents: 46
diff changeset
    92
    # The list can contain "sort_tag, order, id, move_up_down, label, wikipedia_link, wikipedia_permalink, dbpedia_link, category, remove_wikipedia_link, alias, remove_tag_from_list, alternative_label, alternative_wikipedia_url"
45
9ef0dc99e100 Change config commit
cavaliet
parents: 43
diff changeset
    93
    # Exemple of list : ['sort_tag', 'order', 'move_up_down', 'label', 'wikipedia_link', 'remove_tag_from_list' ]
9ef0dc99e100 Change config commit
cavaliet
parents: 43
diff changeset
    94
    # If document_list_profile in not defined, all columns and the sort tag button will be displayed.
41
dc31a49ad590 commit changes before update.
cavaliet
parents: 35
diff changeset
    95
    document_list_profile:
47
9b00414477ab icon images in css, little debug, update document profile configuration
cavaliet
parents: 46
diff changeset
    96
        all:         [ 'sort_tag', 'order', 'id', 'move_up_down', 'label', 'wikipedia_link', 'wikipedia_permalink', 'dbpedia_link', 'category', 'remove_wikipedia_link', 'alias', 'remove_tag_from_list', 'alternative_label', 'alternative_wikipedia_url' ]
45
9ef0dc99e100 Change config commit
cavaliet
parents: 43
diff changeset
    97
        editor :     [ 'sort_tag', 'order', 'id', 'move_up_down', 'label', 'wikipedia_link', 'wikipedia_permalink', 'dbpedia_link', 'category', 'remove_wikipedia_link', 'alias', 'remove_tag_from_list' ]
47
9b00414477ab icon images in css, little debug, update document profile configuration
cavaliet
parents: 46
diff changeset
    98
        contributor: [ 'order', 'label', 'wikipedia_link', 'wikipedia_permalink', 'delete_wikipedia_link', 'remove_tag_from_list' ]
45
9ef0dc99e100 Change config commit
cavaliet
parents: 43
diff changeset
    99
        another:     [ 'sort_tag', 'order', 'move_up_down', 'id', 'label', 'wikipedia_link', 'remove_tag_from_list' ]
48
72337f843abd First step of column management in document tag list. Little debug on js for move up down.
cavaliet
parents: 47
diff changeset
   100
        test:        [ 'order', 'id', 'move_up_down', 'label', 'wikipedia_link', 'wikipedia_permalink', 'dbpedia_link', 'remove_wikipedia_link', 'remove_tag_from_list', 'alternative_wikipedia_url' ]
73
c8ecf6c0bdd3 Add configuration to enable curl request with proxy or any other CURLOPT
cavaliet
parents: 64
diff changeset
   101
    # Options for curl_setopt, typically proxy settings. If you want to use constant values, just write for example 'CURLOPT_PROXYAUTH' or 'CURLAUTH_NTLM'.
c8ecf6c0bdd3 Add configuration to enable curl request with proxy or any other CURLOPT
cavaliet
parents: 64
diff changeset
   102
    # The program will check if the string gives an existing constant
c8ecf6c0bdd3 Add configuration to enable curl request with proxy or any other CURLOPT
cavaliet
parents: 64
diff changeset
   103
    # For boolean, just write 'TRUE' or 'FALSE'. 
75
72e6905b3619 correct call getMaxOrder
cavaliet
parents: 73
diff changeset
   104
    #curl_options:
72e6905b3619 correct call getMaxOrder
cavaliet
parents: 73
diff changeset
   105
    #    CURLOPT_HTTPPROXYTUNNEL:  'TRUE'
72e6905b3619 correct call getMaxOrder
cavaliet
parents: 73
diff changeset
   106
    #    CURLOPT_PROXYAUTH: 'CURLAUTH_NTLM'
72e6905b3619 correct call getMaxOrder
cavaliet
parents: 73
diff changeset
   107
    #    CURLOPT_USERAGENT: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0.1) Gecko/20100101 Firefox/10.0.1'
72e6905b3619 correct call getMaxOrder
cavaliet
parents: 73
diff changeset
   108
    #    CURLOPT_PROXY: 'derain.centrepompidou.lan:3128'
72e6905b3619 correct call getMaxOrder
cavaliet
parents: 73
diff changeset
   109
    #    CURLOPT_PROXYUSERPWD: 'DOM-CNAC\cavaliet:thibaut';
72e6905b3619 correct call getMaxOrder
cavaliet
parents: 73
diff changeset
   110
    #    CURLOPT_PROXYTYPE: 'CURLPROXY_HTTP'
41
dc31a49ad590 commit changes before update.
cavaliet
parents: 35
diff changeset
   111
34
ymh <ymh.work@gmail.com>
parents: 32 31
diff changeset
   112
32
f166042d4421 add event on tag changed
ymh <ymh.work@gmail.com>
parents: 29
diff changeset
   113
services:
f166042d4421 add event on tag changed
ymh <ymh.work@gmail.com>
parents: 29
diff changeset
   114
    wiki_tag.tag_test_listener:
f166042d4421 add event on tag changed
ymh <ymh.work@gmail.com>
parents: 29
diff changeset
   115
        class: Company\BaseBundle\Event\TestListener
f166042d4421 add event on tag changed
ymh <ymh.work@gmail.com>
parents: 29
diff changeset
   116
        arguments: [@service_container]
f166042d4421 add event on tag changed
ymh <ymh.work@gmail.com>
parents: 29
diff changeset
   117
        tags:
f166042d4421 add event on tag changed
ymh <ymh.work@gmail.com>
parents: 29
diff changeset
   118
            - { name: kernel.event_listener, event: wikitag.tag_changed, method: onTagCreateAction }
35
382573c64e16 Context search v1 is finished. Context allowing various configuration is set. Css and templates are clearly set.
cavaliet
parents: 34
diff changeset
   119
382573c64e16 Context search v1 is finished. Context allowing various configuration is set. Css and templates are clearly set.
cavaliet
parents: 34
diff changeset
   120