· 5 years ago · Nov 14, 2019, 02:32 PM
1imports:
2 - { resource: parameters.yml }
3 - { resource: security.yml }
4 - { resource: services.yml }
5
6# Put parameters here that don't need to change on each machine where the app is deployed
7# http://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
8parameters:
9 locale: fr
10 nb_rebill_max: 10
11 eternity_send_emails: 0
12 eternity_email_logo_url:
13 eternity_token_expiration: T1H
14 eternity_test_mode: 0
15 eternity_3DS: 0 # 0 no 3DS, 1 3DS when available , 2 force 3DS or refuse.
16 eternity_show_name_cb: 1
17 eternity_access_login: m@M36qWF$rmZL2mj
18 eternity_access_pwd: 9k+pZVMresu@9n9D
19 eternity_encode_key: PAOSdsqk,axw120AQMS++1923
20 eternity_authorized_grc_roles: ['ROLE_GRC','ROLE_ADMIN']
21 eternity_unsuscribe_admin_send_email: 1
22 eternity_invoice_shortname: RN
23 eternity_trustpilot:
24 api_key: 'tphW5DJ7tdMFny6Unryz7PeFq3rcArK9' #SND
25 secret_key: 'kXzpfSP0b4k8nAiw'
26 login: 'contact@snd-group.fr'
27 pwd: 'Trustsnd18!'
28 bu_name: 'www.recherche-notices.fr'
29 client_url: https://recherche-notices.fr
30 eternity_url: https://recherche-notices.eternity-access.com
31 invoices_path: "%kernel.root_dir%/../web/invoices"
32 contact:
33 url: "%client_url%"
34 eternity_url: "%eternity_url%"
35 email: contact@recherche-notices.fr
36 hipay: # to overide dans la config_prod
37 client_username: 94667002.stage-secure-gateway.hipay-tpp.com # pour les order
38 client_password: Test_nHxf4n6fa2ZzL00H6C5ie2ln
39 client_public_username: 94667388.stage-secure-gateway.hipay-tpp.com # pour tokeniser en JS
40 client_public_password: Test_3ld0PeNHKtWdqyAS7S3E4jfA
41 current_base_plan: 3
42 current_retry_intervals: ['1D','2D','9D','16D','23D','30D','37D','44D']
43 public_url_id: 73127 #id client chez hipay pour faire le lien dans le BO
44 plans:
45
46 AIF: 3
47 ET: 3
48 checkout_view: :hipay:checkout_v10.html.twig
49 notices_cci_adresses:
50 - 'notices_dev@recherche-notices.fr'
51
52framework:
53 #esi: ~
54 translator: { fallbacks: ["%locale%"] }
55 secret: "%secret%"
56 router:
57 resource: "%kernel.root_dir%/config/routing.yml"
58 strict_requirements: ~
59 form: ~
60 csrf_protection: ~
61 validation: { enable_annotations: true }
62 #serializer: { enable_annotations: true }
63 templating:
64 engines: ['twig']
65 default_locale: "%locale%"
66 trusted_hosts: ~
67 trusted_proxies: ~
68 session:
69 # http://symfony.com/doc/current/reference/configuration/framework.html#handler-id
70 handler_id: session.handler.native_file
71 save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%"
72 fragments: ~
73 http_method_override: true
74 assets: ~
75
76# Twig Configuration
77twig:
78 debug: "%kernel.debug%"
79 strict_variables: "%kernel.debug%"
80 globals:
81 hipay_infos: "%hipay%"
82 eternity_test_mode: "%eternity_test_mode%"
83 eternity_show_name_cb: "%eternity_show_name_cb%"
84 site_name: Recherche-notices.fr
85 site_desc: >
86 Mise à disposition d'un conseiller pour rechercher des notices d'utilisation
87 (dans la limite de 50 notices par mois).
88 Traduction de notices et mise à disposition d'un expert technique à raison de 1 heure par mois pour vous aider si
89 vous n'arrivez pas à solutionner votre problème et/ou appliquer les consignes de votre notice.
90
91 agent_name: Elise
92 client_url: "%client_url%"
93
94# Doctrine Configuration
95doctrine:
96 dbal:
97 driver: pdo_mysql
98 host: "%database_host%"
99 port: "%database_port%"
100 dbname: "%database_name%"
101 user: "%database_user%"
102 password: "%database_password%"
103 charset: UTF8
104 # if using pdo_sqlite as your database driver:
105 # 1. add the path in parameters.yml
106 # e.g. database_path: "%kernel.root_dir%/data/data.db3"
107 # 2. Uncomment database_path in parameters.yml.dist
108 # 3. Uncomment next line:
109 # path: "%database_path%"
110
111 orm:
112 auto_generate_proxy_classes: "%kernel.debug%"
113 naming_strategy: doctrine.orm.naming_strategy.underscore
114 auto_mapping: true
115 dql:
116 string_functions:
117 GROUP_CONCAT: Snd\EternityBundle\Doctrine\Mysql\GroupConcat
118 numeric_functions:
119 time_diff: DQL\TimeDiff
120
121# Swiftmailer Configuration
122swiftmailer:
123 transport: "%mailer_transport%"
124 host: "%mailer_host%"
125 username: "%mailer_user%"
126 password: "%mailer_password%"
127 spool: { type: memory }
128
129sonata_admin:
130 templates:
131 layout: Admin/layout/standard_layout.html.twig # "@SndEternity/Admin/layout/standard_layout.html.twig"
132 title: ' '
133 title_logo: /bundles/sndeternity/images/index/logo_full.png
134 assets:
135 extra_stylesheets:
136 - 'bundles/sndeternity/css/adminSonata.css'
137 extra_javascripts:
138 - '/bower_components/bootstrap-sass/assets/javascripts/bootstrap.js'
139 - '/bundles/sndeternity/scripts/eternity.js'
140 security:
141 handler: sonata.admin.security.handler.role
142 role_admin: ROLE_ADMIN
143 role_super_admin: ROLE_ADMIN
144
145
146sonata_block:
147 default_contexts: [cms]
148 blocks:
149 # enable the SonataAdminBundle block
150 sonata.admin.block.admin_list:
151 contexts: [admin]
152 sonata.admin.block.search_result:
153 contexts: [admin]
154
155fos_user:
156 db_driver: orm # other valid values are 'mongodb', 'couchdb' and 'propel'
157 firewall_name: main
158 user_class: Snd\EternityBundle\Entity\User
159 from_email:
160 address: ne-pas-repondre@recherche-notices.fr
161 sender_name: Notices
162 resetting:
163 email:
164 from_email:
165 address: ne-pas-repondre@recherche-notices.fr
166 sender_name: Notices
167
168monolog:
169 channels: ['worker','ws_hipay']
170 handlers:
171 worker:
172 type: stream
173 path: '%kernel.logs_dir%/worker.log'
174 channels: [worker]
175 ws_hipay:
176 type: stream
177 path: '%kernel.logs_dir%/ws_hipay.log'
178 channels: [ws_hipay]
179
180
181knp_gaufrette:
182 adapters:
183 object_storage:
184 opencloud:
185 object_store_id: opencloud.object_store
186 container_name: factures_eternity
187 create_container: false
188 detect_content_type: true
189 filesystems:
190 eternity_invoice_storage:
191 adapter: object_storage