]> git.immae.eu Git - github/wallabag/wallabag.git/blame - app/config/config.yml
Add test on RegistrationConfirmedListener
[github/wallabag/wallabag.git] / app / config / config.yml
CommitLineData
93fd4692
NL
1imports:
2 - { resource: parameters.yml }
3 - { resource: security.yml }
4 - { resource: services.yml }
5
6framework:
7 #esi: ~
78cedc22 8 translator: { fallback: "%locale%" }
93fd4692
NL
9 secret: "%secret%"
10 router:
11 resource: "%kernel.root_dir%/config/routing.yml"
12 strict_requirements: ~
13 form: ~
14 csrf_protection: ~
15 validation: { enable_annotations: true }
16 templating:
17 engines: ['twig']
18 #assets_version: SomeVersionScheme
19 default_locale: "%locale%"
20 trusted_hosts: ~
21 trusted_proxies: ~
22 session:
23 # handler_id set to null will use default session handler from php.ini
24 handler_id: ~
25 fragments: ~
26 http_method_override: true
27
28# Twig Configuration
29twig:
30 debug: "%kernel.debug%"
31 strict_variables: "%kernel.debug%"
bd9f0815
NL
32 globals:
33 share_twitter: %share_twitter%
34 share_mail: %share_mail%
35 share_shaarli: %share_shaarli%
36 shaarli_url: %shaarli_url%
37 share_diaspora: %share_diaspora%
38 diaspora_url: %diaspora_url%
39 flattr: %flattr%
40 flattrable: 1
41 flattred: 2
42 carrot: %carrot%
43 show_printlink: %show_printlink%
44 export_epub: %export_epub%
45 export_mobi: %export_mobi%
46 export_pdf: %export_pdf%
b84a8055 47 version: %app.version%
fdab81e9 48 warning_message: %warning_message%
b84a8055
NL
49 paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb"
50 flattr_url: "https://flattr.com/thing/1265480"
26864574
NL
51 form:
52 resources:
53 - LexikFormFilterBundle:Form:form_div_layout.html.twig
6682139e 54
93fd4692
NL
55# Assetic Configuration
56assetic:
57 debug: "%kernel.debug%"
58 use_controller: false
59 bundles: [ ]
60 #java: /usr/bin/java
61 filters:
62 cssrewrite: ~
63 #closure:
64 # jar: "%kernel.root_dir%/Resources/java/compiler.jar"
65 #yui_css:
66 # jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"
67
68# Doctrine Configuration
69doctrine:
70 dbal:
71 driver: "%database_driver%"
61b9fdd5
NL
72 host: "%database_host%"
73 port: "%database_port%"
74 dbname: "%database_name%"
75 user: "%database_user%"
76 password: "%database_password%"
93fd4692 77 charset: UTF8
9d50517c 78 path: "%database_path%"
93fd4692
NL
79
80 orm:
81 auto_generate_proxy_classes: "%kernel.debug%"
164bd801
J
82 entity_managers:
83 default:
84 naming_strategy: wallabag_core.doctrine.prefixed_naming_strategy
85 auto_mapping: true
93fd4692
NL
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 }
e4788de5
NL
94
95fos_rest:
96 param_fetcher_listener: true
97 body_listener: true
98 format_listener: true
99 view:
100 view_response_listener: 'force'
101 formats:
102 xml: true
103 json : true
104 templating_formats:
105 html: true
106 force_redirects:
107 html: true
108 failed_validation: HTTP_BAD_REQUEST
109 default_engine: twig
110 routing_loader:
a65f5d55 111 default_format: json
e4788de5 112
cd1298d6
NL
113nelmio_api_doc:
114 sandbox:
115 enabled: false
fca3c757
NL
116
117nelmio_cors:
118 defaults:
119 allow_credentials: false
120 allow_origin: []
121 allow_headers: []
122 allow_methods: []
123 expose_headers: []
124 max_age: 0
125 hosts: []
126 #origin_regex: false
127 paths:
128 '^/api/':
129 allow_origin: ['*']
130 allow_headers: ['X-Custom-Auth']
131 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
132 max_age: 3600
133 '^/':
134 #origin_regex: true
135 allow_origin: ['^http://localhost:[0-9]+']
136 allow_headers: ['X-Custom-Auth']
137 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
138 max_age: 3600
139 hosts: ['^api\.']
32da2a70
J
140
141liip_theme:
142 load_controllers: false
143 themes:
144 - baggy
9948d899 145 - material
32da2a70
J
146 autodetect_theme: wallabag_core.helper.detect_active_theme
147
148 path_patterns:
3e30422c
J
149 # app_resource:
150 # - %%app_path%%/views/themes/%%current_theme%%/%%template%%
151 # - %%app_path%%/views/%%template%%
32da2a70
J
152 bundle_resource:
153 - %%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%
3e30422c
J
154 # bundle_resource_dir:
155 # - %%dir%%/views/themes/%%current_theme%%/%%bundle_name%%/%%template%%
156 # - %%dir%%/views/%%bundle_name%%/%%override_path%%
a1691859
NL
157
158fos_user:
159 db_driver: orm
160 firewall_name: main
161 user_class: Wallabag\CoreBundle\Entity\User
fcb1fba5
NL
162 registration:
163 form:
164 type: wallabag_user_registration
165 confirmation:
166 enabled: true
167
168fos_oauth_server:
169 db_driver: orm
170 client_class: Wallabag\ApiBundle\Entity\Client
171 access_token_class: Wallabag\ApiBundle\Entity\AccessToken
172 refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken
173 auth_code_class: Wallabag\ApiBundle\Entity\AuthCode
174 service:
175 user_provider: fos_user.user_manager