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

framework:
    #esi:             ~
    translator:      { fallback: "%locale%" }
    secret:          "%secret%"
    router:
        resource: "%kernel.root_dir%/config/routing.yml"
        strict_requirements: "%kernel.debug%"
    form:            true
    csrf_protection: true
    validation:      { enable_annotations: true }
    templating:      { engines: ['twig', 'php'] } #assets_version: SomeVersionScheme
    default_locale:           "%locale%"
    trusted_proxies:          ~
    session:
        name:                 BAPID
        handler_id:           %session_handler%
        save_path:            %kernel.root_dir%/cache/sessions
        gc_maxlifetime:       3600
        cookie_httponly:      true
    fragments:
        enabled:              true
        path:                 /_fragment # used for controller action in template
    serializer:
        enabled:              true

# Twig Configuration
twig:
    debug:                    "%kernel.debug%"
    strict_variables:         "%kernel.debug%"
    exception_controller:     "FOS\RestBundle\Controller\ExceptionController::showAction"
    globals:
        bap:
            layout:           ::base.html.twig  # default layout across all Oro bundles
        ws:
            port:             "%websocket_port%"
            host:             "%websocket_host%"

# Assetic Configuration
assetic:
    debug:                    false
    use_controller:           false
    filters:
        cssrewrite: ~
        lessphp:
            file: %kernel.root_dir%/../vendor/leafo/lessphp/lessc.inc.php
            apply_to: "\.less$"
        cssmin:
            file: %kernel.root_dir%/Resources/php/cssmin-v3.0.1.php

# Doctrine Configuration
doctrine:
    dbal:
        default_connection:   default
        connections:
            default:
                driver:       pdo_mysql
                host:         "%database_host%"
                port:         "%database_port%"
                dbname:       "%database_name%"
                user:         "%database_user%"
                password:     "%<PASSWORD>%"
                charset:      UTF8
            report_source:
                driver:       pdo_mysql
                host:         "%database_host%"
                port:         "%database_port%"
                dbname:       "%database_name%"
                user:         "%database_user%"
                password:     "%<PASSWORD>%"
                charset:      UTF8
            report_target:
                driver:       pdo_mysql
                host:         "%database_host%"
                port:         "%database_port%"
                dbname:       "%database_name%"
                user:         "%database_user%"
                password:     "%<PASSWORD>%"
                charset:      UTF8
        types:
            date:     Oro\Bundle\LocaleBundle\DoctrineExtensions\DBAL\Types\UTCDateType
            datetime: Oro\Bundle\LocaleBundle\DoctrineExtensions\DBAL\Types\UTCDateTimeType
            time:     Oro\Bundle\LocaleBundle\DoctrineExtensions\DBAL\Types\UTCTimeType
    orm:
        auto_generate_proxy_classes: "%kernel.debug%"
        auto_mapping:         true
        class_metadata_factory_name: Oro\Bundle\EntityExtendBundle\Mapping\ExtendClassMetadataFactory
        resolve_target_entities:
            Symfony\Component\Security\Core\User\UserInterface: Oro\Bundle\UserBundle\Entity\User
        mappings:
            OroDistributionBundle:
                mapping:   false
                is_bundle: true
                
        dql:
            datetime_functions:
                date:         Luxifer\DQL\Datetime\Date
                datediff:     Luxifer\DQL\Datetime\DateDiff
                dateofmonth:  Luxifer\DQL\Datetime\DateOfMonth
                dateofweek:   Luxifer\DQL\Datetime\DateOfWeek
                dateofyear:   Luxifer\DQL\Datetime\DateOfYear
                week:         Luxifer\DQL\Datetime\Week
                day:          Luxifer\DQL\Datetime\Day
                hour:         Luxifer\DQL\Datetime\Hour
                minute:       Luxifer\DQL\Datetime\Minute
                month:        Luxifer\DQL\Datetime\Month
                quarter:      Luxifer\DQL\Datetime\Quarter
                second:       Luxifer\DQL\Datetime\Second
                time:         Luxifer\DQL\Datetime\Time
                year:         Luxifer\DQL\Datetime\Year
                convert_tz:   Luxifer\DQL\Datetime\ConvertTZ
                

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

knp_paginator:
    page_range:               5         # default page range used in pagination control
    default_options:
        page_name:            page      # page query parameter name
        sort_field_name:      sort      # sort field query parameter name
        sort_direction_name:  direction # sort direction query parameter name
        distinct:             false     # ensure distinct results, useful when ORM queries are using GROUP BY statements
    template:
        pagination:           OroUIBundle::pager.html.twig

fos_rest:
    view:
        failed_validation:    HTTP_BAD_REQUEST
        default_engine:       php
        formats:
            json:             true
            xml:              true
    format_listener:
        prefer_extension:     true
    body_listener:
        decoders:
            json:             fos_rest.decoder.json
            xml:              fos_rest.decoder.xml
    routing_loader:
        default_format:       json

fos_js_routing:
    routes_to_expose:         [oro_*]

be_simple_soap:
    cache:
        type:                 disk
        lifetime:             86400
        limit:                5
    services:
        soap:
            namespace:        urn:OroPlatform
            binding:          rpc-literal
            resource:         .
            resource_type:    oro_soap

stof_doctrine_extensions:
    default_locale: en
    translation_fallback: true
    orm:
        default:
            translatable:     true
            tree:             true

services:
    twig.extension.intl:
         class:               Twig_Extensions_Extension_Intl
         tags:
             - { name: twig.extension }
    doctrine.dbal.default.wrapped_connection:
        factory_service:      doctrine.dbal.default_connection
        factory_method:       getWrappedConnection
        class:                PDO
    session.handler.pdo:
        class:                Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler
        arguments:
            - "@doctrine.dbal.default.wrapped_connection"
            -
              db_table:       oro_session
              db_id_col:      id

escape_wsse_authentication:
    authentication_provider_class: Oro\Bundle\UserBundle\Security\WsseUserProvider
    authentication_listener_class: Oro\Bundle\UserBundle\Security\WsseAuthListener

liip_imagine:
    filter_sets:
        avatar_med:
            quality:          95
            filters:
                thumbnail:    { size: [58, 58], mode: outbound }
                strip:        ~

genemu_form:<commit_msg>BAP-4080: WSSE authentication is not working<commit_after>imports:
    - { resource: parameters.yml }
    - { resource: security.yml }

framework:
    #esi:             ~
    translator:      { fallback: "%locale%" }
    secret:          "%secret%"
    router:
        resource: "%kernel.root_dir%/config/routing.yml"
        strict_requirements: "%kernel.debug%"
    form:            true
    csrf_protection: true
    validation:      { enable_annotations: true }
    templating:      { engines: ['twig', 'php'] } #assets_version: SomeVersionScheme
    default_locale:           "%locale%"
    trusted_proxies:          ~
    session:
        name:                 BAPID
        handler_id:           %session_handler%
        save_path:            %kernel.root_dir%/cache/sessions
        gc_maxlifetime:       3600
        cookie_httponly:      true
    fragments:
        enabled:              true
        path:                 /_fragment # used for controller action in template
    serializer:
        enabled:              true

# Twig Configuration
twig:
    debug:                    "%kernel.debug%"
    strict_variables:         "%kernel.debug%"
    exception_controller:     "FOS\RestBundle\Controller\ExceptionController::showAction"
    globals:
        bap:
            layout:           ::base.html.twig  # default layout across all Oro bundles
        ws:
            port:             "%websocket_port%"
            host:             "%websocket_host%"

# Assetic Configuration
assetic:
    debug:                    false
    use_controller:           false
    filters:
        cssrewrite: ~
        lessphp:
            file: %kernel.root_dir%/../vendor/leafo/lessphp/lessc.inc.php
            apply_to: "\.less$"
        cssmin:
            file: %kernel.root_dir%/Resources/php/cssmin-v3.0.1.php

# Doctrine Configuration
doctrine:
    dbal:
        default_connection:   default
        connections:
            default:
                driver:       pdo_mysql
                host:         "%database_host%"
                port:         "%database_port%"
                dbname:       "%database_name%"
                user:         "%database_user%"
                password:     "%<PASSWORD>%"
                charset:      UTF8
            report_source:
                driver:       pdo_mysql
                host:         "%database_host%"
                port:         "%database_port%"
                dbname:       "%database_name%"
                user:         "%database_user%"
                password:     "%<PASSWORD>%"
                charset:      UTF8
            report_target:
                driver:       pdo_mysql
                host:         "%database_host%"
                port:         "%database_port%"
                dbname:       "%database_name%"
                user:         "%database_user%"
                password:     "%<PASSWORD>%"
                charset:      UTF8
        types:
            date:     Oro\Bundle\LocaleBundle\DoctrineExtensions\DBAL\Types\UTCDateType
            datetime: Oro\Bundle\LocaleBundle\DoctrineExtensions\DBAL\Types\UTCDateTimeType
            time:     Oro\Bundle\LocaleBundle\DoctrineExtensions\DBAL\Types\UTCTimeType
    orm:
        auto_generate_proxy_classes: "%kernel.debug%"
        auto_mapping:         true
        class_metadata_factory_name: Oro\Bundle\EntityExtendBundle\Mapping\ExtendClassMetadataFactory
        resolve_target_entities:
            Symfony\Component\Security\Core\User\UserInterface: Oro\Bundle\UserBundle\Entity\User
        mappings:
            OroDistributionBundle:
                mapping:   false
                is_bundle: true
                
        dql:
            datetime_functions:
                date:         Luxifer\DQL\Datetime\Date
                datediff:     Luxifer\DQL\Datetime\DateDiff
                dateofmonth:  Luxifer\DQL\Datetime\DateOfMonth
                dateofweek:   Luxifer\DQL\Datetime\DateOfWeek
                dateofyear:   Luxifer\DQL\Datetime\DateOfYear
                week:         Luxifer\DQL\Datetime\Week
                day:          Luxifer\DQL\Datetime\Day
                hour:         Luxifer\DQL\Datetime\Hour
                minute:       Luxifer\DQL\Datetime\Minute
                month:        Luxifer\DQL\Datetime\Month
                quarter:      Luxifer\DQL\Datetime\Quarter
                second:       Luxifer\DQL\Datetime\Second
                time:         Luxifer\DQL\Datetime\Time
                year:         Luxifer\DQL\Datetime\Year
                convert_tz:   Luxifer\DQL\Datetime\ConvertTZ
                

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

knp_paginator:
    page_range:               5         # default page range used in pagination control
    default_options:
        page_name:            page      # page query parameter name
        sort_field_name:      sort      # sort field query parameter name
        sort_direction_name:  direction # sort direction query parameter name
        distinct:             false     # ensure distinct results, useful when ORM queries are using GROUP BY statements
    template:
        pagination:           OroUIBundle::pager.html.twig

fos_rest:
    view:
        failed_validation:    HTTP_BAD_REQUEST
        default_engine:       php
        formats:
            json:             true
            xml:              true
    format_listener:
        prefer_extension:     true
    body_listener:
        decoders:
            json:             fos_rest.decoder.json
            xml:              fos_rest.decoder.xml
    routing_loader:
        default_format:       json

fos_js_routing:
    routes_to_expose:         [oro_*]

be_simple_soap:
    cache:
        type:                 disk
        lifetime:             86400
        limit:                5
    services:
        soap:
            namespace:        urn:OroPlatform
            binding:          rpc-literal
            resource:         .
            resource_type:    oro_soap

stof_doctrine_extensions:
    default_locale: en
    translation_fallback: true
    orm:
        default:
            translatable:     true
            tree:             true

services:
    twig.extension.intl:
         class:               Twig_Extensions_Extension_Intl
         tags:
             - { name: twig.extension }
    doctrine.dbal.default.wrapped_connection:
        factory_service:      doctrine.dbal.default_connection
        factory_method:       getWrappedConnection
        class:                PDO
    session.handler.pdo:
        class:                Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler
        arguments:
            - "@doctrine.dbal.default.wrapped_connection"
            -
              db_table:       oro_session
              db_id_col:      id

escape_wsse_authentication:
    authentication_provider_class: Oro\Bundle\UserBundle\Security\WsseAuthProvider
    authentication_listener_class: Oro\Bundle\UserBundle\Security\WsseAuthListener

liip_imagine:
    filter_sets:
        avatar_med:
            quality:          95
            filters:
                thumbnail:    { size: [58, 58], mode: outbound }
                strip:        ~

genemu_form:
{'fraction_non_alphanumeric': 0.07284987109142593, 'fraction_numerical': 0.0033053480531499966, 'mean_word_length': 1.3948076618648093, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4500350', 'n_tokens_mistral': 4128, 'n_tokens_neox': 4015, 'n_words': 740}