1imports:
2    - { resource: set_parameters.php }
3    - { resource: security.yml }
4    - { resource: services.yml }
5    - { resource: addons/*.yml }
6    - { resource: doctrine.yml }
7
8# Put parameters here that don't need to change on each machine where the app is deployed
9# http://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
10parameters:
11    env(PS_THEME_NAME): "classic"
12    AdapterSecurityAdminClass: PrestaShop\PrestaShop\Adapter\Security\Admin
13    translator.class: PrestaShopBundle\Translation\Translator
14    translator.data_collector: PrestaShopBundle\Translation\DataCollectorTranslator
15    admin_page: "%kernel.root_dir%/../src/PrestaShopBundle/Resources/views/Admin"
16    env(PS_LOG_OUTPUT): "%kernel.logs_dir%/%kernel.environment%.log"
17    mail_themes_uri: "/mails/themes"
18    mail_themes_dir: "%kernel.project_dir%%mail_themes_uri%"
19    modules_translation_paths: []
20
21# Autowires Core controllers
22services:
23    PrestaShopBundle\Controller\:
24        resource: "%kernel.root_dir%/../src/PrestaShopBundle/Controller/*"
25        exclude: "%kernel.root_dir%/../src/PrestaShopBundle/Controller/Api"
26        tags:
27          - 'controller.service_arguments'
28          - !php/const PrestaShopBundle\Controller\Admin\FrameworkBundleAdminController::PRESTASHOP_CORE_CONTROLLERS_TAG
29
30framework:
31    assets:
32        version: !php/const \AppKernel::VERSION
33
34    #esi:             ~
35    secret:          "%secret%"
36    translator:
37        fallbacks: ["default"]
38        paths: "%modules_translation_paths%"
39    router:
40        resource: "%kernel.root_dir%/config/routing.yml"
41        strict_requirements: ~
42    form:            ~
43    csrf_protection: ~
44    validation:      { enable_annotations: true }
45    serializer:      { enable_annotations: true }
46    templating:
47        engines: ['twig']
48    default_locale:  "%locale%"
49    trusted_hosts:   ~
50    session:
51        handler_id:  ~
52    fragments:       ~
53    http_method_override: true
54
55# Monolog configuration #
56monolog:
57    handlers:
58        main:
59            type: stream
60            path: '%env(PS_LOG_OUTPUT)%'
61            level: notice
62        legacy:
63            type: service
64            id: prestashop.handler.log
65            level: warning
66            channels: [app]
67
68# Twig Configuration
69twig:
70    autoescape:       "name"
71    debug:            "%kernel.debug%"
72    strict_variables: "%kernel.debug%"
73    form_themes:
74        - 'PrestaShopBundle:Admin/TwigTemplateForm:bootstrap_4_horizontal_layout.html.twig'
75    paths:
76        '%admin_page%/Product': Product
77        '%admin_page%/TwigTemplateForm': Twig
78        '%admin_page%/Common': Common
79        '%admin_page%/Configure/AdvancedParameters': AdvancedParameters
80        '%admin_page%/Configure/ShopParameters': ShopParameters
81        '%kernel.root_dir%/../modules': Modules
82        '%mail_themes_dir%': MailThemes
83    globals:
84        webpack_server: false
85        multistore_field_prefix: !php/const:PrestaShopBundle\Service\Form\MultistoreCheckboxEnabler::MULTISTORE_FIELD_PREFIX
86
87# Swiftmailer Configuration
88swiftmailer:
89    transport: "%mailer_transport%"
90    host:      "%mailer_host%"
91    username:  "%mailer_user%"
92    password:  "%mailer_password%"
93    spool:     { type: memory }
94
95# Guzzle configuration
96csa_guzzle:
97    profiler:
98        enabled: "%kernel.debug%"
99    cache:
100        enabled: true
101        adapter: guzzle.cache
102    clients:
103        addons_api:
104            config: # you can specify the options as in http://docs.guzzlephp.org/en/latest/quickstart.html#creating-a-client
105                base_url: "https://api-addons.prestashop.com"
106                defaults:
107                    timeout: "5.0"
108                headers:
109                    Accept: "application/json"
110                curl:
111                    forbid_reuse: true
112                    fresh_connect: true
113
114prestashop:
115    addons:
116        prestatrust:
117            enabled: true
118        api_client:
119            ttl: 7200 # 2h
120            # verify_ssl: ~ # Bundle CA by default, declaring "addons.api_client.verify_ssl" parameter overrides its usage
121