<commit_before>imports:
    - { resource: parameters.yml }
    - { resource: security.yml }
    - { resource: services.yml }
    - { resource: sylius.yml }

parameters:
    knp.doctrine_behaviors.blameable_subscriber.user_entity: Sylius\Component\User\Model\User
    locale: fr
    sylius.locale: "%locale%"

framework:
    #esi:             ~
    translator:      { fallback: "%locale%" }
    translator: ~
    secret:          "%secret%"
    router:
        resource: "%kernel.root_dir%/config/routing.yml"
        strict_requirements: ~
    form:            ~
    csrf_protection: ~
    validation:      { enable_annotations: true }
    templating:
        engines: ['twig']
        #assets_version: SomeVersionScheme
    default_locale:  "%locale%"
    trusted_hosts:   ~
    trusted_proxies: ~
    session:
        # handler_id set to null will use default session handler from php.ini
        handler_id:  ~
    fragments:       ~
    http_method_override: true

# Twig Configuration
twig:
    debug:            "%kernel.debug%"
    strict_variables: "%kernel.debug%"

# Assetic Configuration
assetic:
    debug:          "%kernel.debug%"
    use_controller: false
    bundles:        [ "FOSCommentBundle", "MopaBootstrapBundle", "CmfCreateBundle" ]
    #java: /usr/bin/java
    filters:
        cssrewrite: ~
        #closure:
        #    jar: "%kernel.root_dir%/Resources/java/compiler.jar"
        #yui_css:
        #    jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"
        compass:
            sass: /usr/local/bin/compass
            apply_to: "[^mopabootstrapbundle]\.(scss|sass)$"
#        yui_css:
#            jar: %kernel.root_dir%/Resources/java/yuicompressor-2.4.6.jar
#            apply_to: "\.css$"
#        yui_js:
#            jar: %kernel.root_dir%/Resources/java/yuicompressor-2.4.6.jar

mopa_bootstrap:
    form:
        show_legend: false # default is true
        render_required_asterisk: true # default is false
        render_optional_text: false # default is true
        collection:
          widget_remove_btn:
            icon: remove
            attr:
              class: btn btn-danger
          widget_add_btn:
            icon: plus
            attr:
              class: btn btn-primary

# Doctrine Configuration
doctrine:
    dbal:
        driver:   "%database_driver%"
        host:     "%database_host%"
        port:     "%database_port%"
        dbname:   "%database_name%"
        user:     "%database_user%"
        password: "%<PASSWORD>%"
        charset:  UTF8
        mapping_types:
          enum: string
        # if using pdo_sqlite as your database driver, add the path in parameters.yml
        # e.g. database_path: "%kernel.root_dir%/data/data.db3"
        # path:     "%database_path%"

    orm:
        auto_generate_proxy_classes: "%kernel.debug%"
        entity_managers:
          default:
            auto_mapping: true
            mappings:
              gedmo_translatable:
                type: annotation
                prefix: Gedmo\Translatable\Entity
                dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translatable/Entity"
                alias: GedmoTranslatable # this one is optional and will default to the name set for the mapping
                is_bundle: false
              gedmo_translator:
                type: annotation
                prefix: Gedmo\Translator\Entity
                dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translator/Entity"
                alias: GedmoTranslator # this one is optional and will default to the name set for the mapping
                is_bundle: false
              gedmo_loggable:
                type: annotation
                prefix: Gedmo\Loggable\Entity
                dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Loggable/Entity"
                alias: GedmoLoggable # this one is optional and will default to the name set for the mapping
                is_bundle: false
              gedmo_tree:
                type: annotation
                prefix: Gedmo\Tree\Entity
                dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Entity"
                alias: GedmoTree # this one is optional and will default to the name set for the mapping
                is_bundle: false
            filters:
              softdeleteable:
                  class: Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter
                  enabled: true

doctrine_phpcr:
    session:
        backend: %phpcr.backend%
        workspace: %phpcr.workspace%
        username: %phpcr.user%
        password: %<PASSWORD>%
    odm:
        auto_mapping: true
        auto_generate_proxy_classes: %kernel.debug%

doctrine_cache:
    providers:
        phpcr_meta: %dos.cache%
        phpcr_nodes: %dos.cache%

knp_doctrine_behaviors:
    blameable:      true
    timestampable:  true
    geocodable:     ~     # Here null is converted to false
    loggable:       ~
    sluggable:      true
    soft_deletable: true
    # All others behaviors are disabled

# Swiftmailer Configuration
swiftmailer:
    transport: "%mailer_transport%"
    host:      "%mailer_host%"
    username:  "%mailer_user%"
    password:  "%<PASSWORD>%"
    spool:     { type: memory }

stof_doctrine_extensions:
  default_locale: fr_FR
  orm:
    default:
      tree: true
      sluggable: tree
      timestampable: true
      softdeleteable: true

white_october_pagerfanta:
    exceptions_strategy:
        out_of_range_page:        to_http_not_found
        not_valid_current_page:   to_http_not_found

fos_comment:
    db_driver: orm
    class:
        model:
            comment: JDJ\CommentBundle\Entity\Comment
            thread: JDJ\CommentBundle\Entity\Thread
            vote: JDJ\CommentBundle\Entity\Vote


services:
  gedmo.listener.blameable:
      class: Gedmo\Blameable\BlameableListener
      tags:
          - { name: doctrine.event_subscriber, connection: default }
      calls:
          - [ setAnnotationReader, [ "@annotation_reader" ] ]
  gedmo.listener.softdeleteable:
      class: Gedmo\SoftDeleteable\SoftDeleteableListener
      tags:
        - { name: doctrine.event_subscriber, connection: default }
      calls:
        - [ setAnnotationReader, [ @annotation_reader ] ]

  gedmo.listener.timestampable:
      class: Gedmo\Timestampable\TimestampableListener
      tags:
        - { name: doctrine.event_subscriber, connection: default }
      calls:
        - [ setAnnotationReader, [ @annotation_reader ] ]

  gedmo.listener.sluggable:
      class: Gedmo\Sluggable\SluggableListener
      tags:
        - { name: doctrine.event_subscriber, connection: default }
      calls:
        - [ setAnnotationReader, [ @annotation_reader ] ]

  gedmo.listener.sortable:
      class: Gedmo\Sortable\SortableListener
      tags:
        - { name: doctrine.event_subscriber, connection: default }
      calls:
        - [ setAnnotationReader, [ @annotation_reader ] ]

  gedmo.listener.loggable:
      class: Gedmo\Loggable\LoggableListener
      tags:
        - { name: doctrine.event_subscriber, connection: default }
      calls:
        - [ setAnnotationReader, [ @annotation_reader ] ]

  twig.extension.intl:
          class: Twig_Extensions_Extension_Intl
          tags:
              - { name: twig.extension }

  twig.extension.text:
      class: Twig_Extensions_Extension_Text
      tags:
          - { name: twig.extension }

gregwar_form: ~

ivory_ck_editor:
    default_config: forum
    configs:
        minimal:
            language: %locale%
            toolbar: basic
        standard:
            toolbar: standard
        forum:
            protectedSource: ['/<span[^>]*><\/span>/g']
            allowedContent:  ['p', 'div(*)', 'ul(*)', 'li', 'span(*)', 'em', 'strong']
            extraPlugins: 'templates,div'
            templates:    "my_templates"
            language: %locale%
            stylesSet: custom_styles  # Chargement des styles personnalisables
            contentsCss:  ['assets/stylesheets/base.css']
            toolbar: [ ['Templates' ], [ 'Bold','Italic','Underline', 'Blockquote' ], [ 'NumberedList','BulletedList' ], [ 'Link','Unlink' ], [ 'Image' ], [ 'Styles', 'Format' ]; ]
    templates:
        my_templates:
            imagesPath: "/assets/ckeditor/templates/images/"
            templates:
                -
                    title:       "My Template"
                    image:       "template1.gif"
                    description: "My awesome template"
                    html:        "<p>Crazy template :)</p>"
                -
                    title:       "Introduction"
                    image:       "template1.gif"
                    description: "My awesome template"
                    html:        '<div class="quote-one"><div class="row"><!-- Quote One Item --><div class="quote-one-item"><span class="color">“</span><div class="quote-one-right"><p>Nemo enim ipsam voluptatem quia quia neque porro qui dolorem ipsum quia dolor sit amet consectetur.</p></div></div></div></div>'
    styles:         # Configuration des styles personnalisables
        custom_styles:
            - { name: "Alerte Success", element: "div",  attributes: { class: "alert alert-success", role: "alert" }}
            - { name: "Alerte Info", element: "div",  attributes: { class: "alert alert-info", role: "alert" }}
            - { name: "Alerte Warning", element: "div",  attributes: { class: "alert alert-warning", role: "alert" }}
            - { name: "Alerte Danger", element: "div",  attributes: { class: "alert alert-danger", role: "alert" }}
            - { name: "Badge", element: "span",  attributes: { class: "badge" }}

knp_snappy:<commit_msg>2 templates with image on left and image on right<commit_after>imports:
    - { resource: parameters.yml }
    - { resource: security.yml }
    - { resource: services.yml }
    - { resource: sylius.yml }

parameters:
    knp.doctrine_behaviors.blameable_subscriber.user_entity: Sylius\Component\User\Model\User
    locale: fr
    sylius.locale: "%locale%"

framework:
    #esi:             ~
    translator:      { fallback: "%locale%" }
    translator: ~
    secret:          "%secret%"
    router:
        resource: "%kernel.root_dir%/config/routing.yml"
        strict_requirements: ~
    form:            ~
    csrf_protection: ~
    validation:      { enable_annotations: true }
    templating:
        engines: ['twig']
        #assets_version: SomeVersionScheme
    default_locale:  "%locale%"
    trusted_hosts:   ~
    trusted_proxies: ~
    session:
        # handler_id set to null will use default session handler from php.ini
        handler_id:  ~
    fragments:       ~
    http_method_override: true

# Twig Configuration
twig:
    debug:            "%kernel.debug%"
    strict_variables: "%kernel.debug%"

# Assetic Configuration
assetic:
    debug:          "%kernel.debug%"
    use_controller: false
    bundles:        [ "FOSCommentBundle", "MopaBootstrapBundle", "CmfCreateBundle" ]
    #java: /usr/bin/java
    filters:
        cssrewrite: ~
        #closure:
        #    jar: "%kernel.root_dir%/Resources/java/compiler.jar"
        #yui_css:
        #    jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"
        compass:
            sass: /usr/local/bin/compass
            apply_to: "[^mopabootstrapbundle]\.(scss|sass)$"
#        yui_css:
#            jar: %kernel.root_dir%/Resources/java/yuicompressor-2.4.6.jar
#            apply_to: "\.css$"
#        yui_js:
#            jar: %kernel.root_dir%/Resources/java/yuicompressor-2.4.6.jar

mopa_bootstrap:
    form:
        show_legend: false # default is true
        render_required_asterisk: true # default is false
        render_optional_text: false # default is true
        collection:
          widget_remove_btn:
            icon: remove
            attr:
              class: btn btn-danger
          widget_add_btn:
            icon: plus
            attr:
              class: btn btn-primary

# Doctrine Configuration
doctrine:
    dbal:
        driver:   "%database_driver%"
        host:     "%database_host%"
        port:     "%database_port%"
        dbname:   "%database_name%"
        user:     "%database_user%"
        password: "%<PASSWORD>%"
        charset:  UTF8
        mapping_types:
          enum: string
        # if using pdo_sqlite as your database driver, add the path in parameters.yml
        # e.g. database_path: "%kernel.root_dir%/data/data.db3"
        # path:     "%database_path%"

    orm:
        auto_generate_proxy_classes: "%kernel.debug%"
        entity_managers:
          default:
            auto_mapping: true
            mappings:
              gedmo_translatable:
                type: annotation
                prefix: Gedmo\Translatable\Entity
                dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translatable/Entity"
                alias: GedmoTranslatable # this one is optional and will default to the name set for the mapping
                is_bundle: false
              gedmo_translator:
                type: annotation
                prefix: Gedmo\Translator\Entity
                dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translator/Entity"
                alias: GedmoTranslator # this one is optional and will default to the name set for the mapping
                is_bundle: false
              gedmo_loggable:
                type: annotation
                prefix: Gedmo\Loggable\Entity
                dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Loggable/Entity"
                alias: GedmoLoggable # this one is optional and will default to the name set for the mapping
                is_bundle: false
              gedmo_tree:
                type: annotation
                prefix: Gedmo\Tree\Entity
                dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Entity"
                alias: GedmoTree # this one is optional and will default to the name set for the mapping
                is_bundle: false
            filters:
              softdeleteable:
                  class: Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter
                  enabled: true

doctrine_phpcr:
    session:
        backend: %phpcr.backend%
        workspace: %phpcr.workspace%
        username: %phpcr.user%
        password: %<PASSWORD>%
    odm:
        auto_mapping: true
        auto_generate_proxy_classes: %kernel.debug%

doctrine_cache:
    providers:
        phpcr_meta: %dos.cache%
        phpcr_nodes: %dos.cache%

knp_doctrine_behaviors:
    blameable:      true
    timestampable:  true
    geocodable:     ~     # Here null is converted to false
    loggable:       ~
    sluggable:      true
    soft_deletable: true
    # All others behaviors are disabled

# Swiftmailer Configuration
swiftmailer:
    transport: "%mailer_transport%"
    host:      "%mailer_host%"
    username:  "%mailer_user%"
    password:  <PASSWORD>%"
    spool:     { type: memory }

stof_doctrine_extensions:
  default_locale: fr_FR
  orm:
    default:
      tree: true
      sluggable: tree
      timestampable: true
      softdeleteable: true

white_october_pagerfanta:
    exceptions_strategy:
        out_of_range_page:        to_http_not_found
        not_valid_current_page:   to_http_not_found

fos_comment:
    db_driver: orm
    class:
        model:
            comment: JDJ\CommentBundle\Entity\Comment
            thread: JDJ\CommentBundle\Entity\Thread
            vote: JDJ\CommentBundle\Entity\Vote


services:
  gedmo.listener.blameable:
      class: Gedmo\Blameable\BlameableListener
      tags:
          - { name: doctrine.event_subscriber, connection: default }
      calls:
          - [ setAnnotationReader, [ "@annotation_reader" ] ]
  gedmo.listener.softdeleteable:
      class: Gedmo\SoftDeleteable\SoftDeleteableListener
      tags:
        - { name: doctrine.event_subscriber, connection: default }
      calls:
        - [ setAnnotationReader, [ @annotation_reader ] ]

  gedmo.listener.timestampable:
      class: Gedmo\Timestampable\TimestampableListener
      tags:
        - { name: doctrine.event_subscriber, connection: default }
      calls:
        - [ setAnnotationReader, [ @annotation_reader ] ]

  gedmo.listener.sluggable:
      class: Gedmo\Sluggable\SluggableListener
      tags:
        - { name: doctrine.event_subscriber, connection: default }
      calls:
        - [ setAnnotationReader, [ @annotation_reader ] ]

  gedmo.listener.sortable:
      class: Gedmo\Sortable\SortableListener
      tags:
        - { name: doctrine.event_subscriber, connection: default }
      calls:
        - [ setAnnotationReader, [ @annotation_reader ] ]

  gedmo.listener.loggable:
      class: Gedmo\Loggable\LoggableListener
      tags:
        - { name: doctrine.event_subscriber, connection: default }
      calls:
        - [ setAnnotationReader, [ @annotation_reader ] ]

  twig.extension.intl:
          class: Twig_Extensions_Extension_Intl
          tags:
              - { name: twig.extension }

  twig.extension.text:
      class: Twig_Extensions_Extension_Text
      tags:
          - { name: twig.extension }

gregwar_form: ~

ivory_ck_editor:
    default_config: forum
    configs:
        minimal:
            language: %locale%
            toolbar: basic
        standard:
            toolbar: standard
        forum:
            protectedSource: ['/<span[^>]*><\/span>/g']
            allowedContent:  ['p', 'div(*)', 'ul(*)', 'li', 'span(*)', 'em', 'strong', 'img(*)', 'h4']
            extraPlugins: 'templates,div'
            templates:    "my_templates"
            language: %locale%
            stylesSet: custom_styles  # Chargement des styles personnalisables
            contentsCss:  ['assets/stylesheets/base.css']
            toolbar: [ ['Templates' ], [ 'Bold','Italic','Underline', 'Blockquote' ], [ 'NumberedList','BulletedList' ], [ 'Link','Unlink' ], [ 'Image' ], [ 'Styles', 'Format' ]; ]
    templates:
        my_templates:
            imagesPath: "/assets/ckeditor/templates/images/"
            templates:
                -
                    title:       "Image à gauche et texte"
                    image:       "template1.gif"
                    description: "Une image principale, un titre et un texte entourant l'image."
                    html:        '<div class="col-sm-5 col-md-5 pull-left no-padding-left"><div class="text-center"><div class="img-box-4-item"><img src=" " alt="" class="img-responsive" /><div class="img-box-4-content"><p>euphrat &amp; tigris version US</p></div></div></div></div><h4><a href="#">Le problème de lisibilité</a></h4><p>Nemo enim ipsam voluptatem quia quia neque porro qui dolorem ipsum quia dolor sit amet consectetur.</p>'
                -
                    title:       "Image à droite et texte"
                    image:       "template1.gif"
                    description: "Une image principale, un titre et un texte entourant l'image."
                    html:        '<div class="col-sm-5 col-md-5 pull-right no-padding-right"><div class="text-center"><div class="img-box-4-item"><img src=" " alt="" class="img-responsive" /><div class="img-box-4-content"><p>euphrat &amp; tigris version US</p></div></div></div></div><h4><a href="#">Le problème de lisibilité</a></h4><p>Nemo enim ipsam voluptatem quia quia neque porro qui dolorem ipsum quia dolor sit amet consectetur.</p>'
                -
                    title:       "Introduction"
                    image:       "template1.gif"
                    description: "My awesome template"
                    html:        '<div class="quote-one"><div class="row"><div class="quote-one-item"><span class="color">“</span><div class="quote-one-right"><p>Nemo enim ipsam voluptatem quia quia neque porro qui dolorem ipsum quia dolor sit amet consectetur.</p></div></div></div></div>'
    styles:         # Configuration des styles personnalisables
        custom_styles:
            - { name: "Alerte Success", element: "div",  attributes: { class: "alert alert-success", role: "alert" }}
            - { name: "Alerte Info", element: "div",  attributes: { class: "alert alert-info", role: "alert" }}
            - { name: "Alerte Warning", element: "div",  attributes: { class: "alert alert-warning", role: "alert" }}
            - { name: "Alerte Danger", element: "div",  attributes: { class: "alert alert-danger", role: "alert" }}
            - { name: "Badge", element: "span",  attributes: { class: "badge" }}

knp_snappy:
{'fraction_non_alphanumeric': 0.10873569904983517, 'fraction_numerical': 0.0019875896839247624, 'mean_word_length': 2.0854023332336227, 'pattern_counts': {'":': 0, '<': 74, '<?xml version=': 0, '>': 76, 'https://': 0, 'lorem ipsum': 4, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6920111', 'n_tokens_mistral': 6247, 'n_tokens_neox': 6096, 'n_words': 1315}