app/config/config.yml
author cavaliet
Mon, 28 Nov 2011 10:34:24 +0100
changeset 41 dc31a49ad590
parent 35 382573c64e16
child 43 9124c70d4fd2
permissions -rwxr-xr-x
commit changes before update.
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
18
c85b9d1ddf19 first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    70
    fields:
c85b9d1ddf19 first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    71
        title:
c85b9d1ddf19 first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    72
            type: string
c85b9d1ddf19 first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    73
            length: 1024
c85b9d1ddf19 first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    74
            accessor: getTitle
29
a30208a2bb60 add weight on fields
ymh <ymh.work@gmail.com>
parents: 24
diff changeset
    75
            weight: 1.0
18
c85b9d1ddf19 first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    76
        description:
c85b9d1ddf19 first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    77
            type: text
29
a30208a2bb60 add weight on fields
ymh <ymh.work@gmail.com>
parents: 24
diff changeset
    78
            weight: 0.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
    79
    # 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
    80
    # 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
    81
    # 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
    82
    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
    83
        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
    84
        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
    85
        document: [ 'document' ]
41
dc31a49ad590 commit changes before update.
cavaliet
parents: 35
diff changeset
    86
    # document_list_profile is the list of the columns displayed in a document's tag list.
dc31a49ad590 commit changes before update.
cavaliet
parents: 35
diff changeset
    87
    # The columns can be "order, id, move_up_down, label, wikipedia_link, wikipedia_permalink, dbpedia_link, category, remove_wikipedia_link, alias, remove_tag_from_list"
dc31a49ad590 commit changes before update.
cavaliet
parents: 35
diff changeset
    88
    # Exemple of list : [ 'order', 'move_up_down', 'label', 'wikipedia_link', 'remove_tag_from_list' ]
dc31a49ad590 commit changes before update.
cavaliet
parents: 35
diff changeset
    89
    # If document_list_profile in not defined, all columns and the button will be displayed.
dc31a49ad590 commit changes before update.
cavaliet
parents: 35
diff changeset
    90
    document_list_profile:
dc31a49ad590 commit changes before update.
cavaliet
parents: 35
diff changeset
    91
        all:         [ 'order', 'id', 'move_up_down', 'label', 'wikipedia_link', 'wikipedia_permalink', 'dbpedia_link', 'category', 'remove_wikipedia_link', 'alias', 'remove_tag_from_list' ]
dc31a49ad590 commit changes before update.
cavaliet
parents: 35
diff changeset
    92
        editor :     [ 'order', 'id', 'move_up_down', 'label', 'wikipedia_link', 'wikipedia_permalink', 'dbpedia_link', 'category', 'remove_wikipedia_link', 'alias', 'remove_tag_from_list' ]
dc31a49ad590 commit changes before update.
cavaliet
parents: 35
diff changeset
    93
        contributor: [ 'order', 'label', 'wikipedia_link', 'wikipedia_permalink', 'delete_wikipedia_link', 'remove_tag_from_list' ]
dc31a49ad590 commit changes before update.
cavaliet
parents: 35
diff changeset
    94
        another:     [ 'order', 'label', 'wikipedia_link', 'remove_tag_from_list' ]
dc31a49ad590 commit changes before update.
cavaliet
parents: 35
diff changeset
    95
34
ymh <ymh.work@gmail.com>
parents: 32 31
diff changeset
    96
32
f166042d4421 add event on tag changed
ymh <ymh.work@gmail.com>
parents: 29
diff changeset
    97
services:
f166042d4421 add event on tag changed
ymh <ymh.work@gmail.com>
parents: 29
diff changeset
    98
    wiki_tag.tag_test_listener:
f166042d4421 add event on tag changed
ymh <ymh.work@gmail.com>
parents: 29
diff changeset
    99
        class: Company\BaseBundle\Event\TestListener
f166042d4421 add event on tag changed
ymh <ymh.work@gmail.com>
parents: 29
diff changeset
   100
        arguments: [@service_container]
f166042d4421 add event on tag changed
ymh <ymh.work@gmail.com>
parents: 29
diff changeset
   101
        tags:
f166042d4421 add event on tag changed
ymh <ymh.work@gmail.com>
parents: 29
diff changeset
   102
            - { 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
   103
382573c64e16 Context search v1 is finished. Context allowing various configuration is set. Css and templates are clearly set.
cavaliet
parents: 34
diff changeset
   104