2 - { resource: parameters.yml }
3 - { resource: security.yml }
4 - { resource: services.yml }
5 - { resource: wallabag.yml }
8 # Allows to use the live reload feature for changes in assets
9 use_webpack_dev_server: false
10 craue_config.cache_adapter.class: Craue\ConfigBundle\CacheAdapter\SymfonyCacheComponentAdapter
19 resource: "%kernel.project_dir%/app/config/routing.yml"
20 strict_requirements: ~
24 enable_annotations: true
27 default_locale: "%locale%"
30 # handler_id set to null will use default session handler from php.ini
31 handler_id: session.handler.native_file
32 save_path: "%kernel.project_dir%/var/sessions/%kernel.environment%"
34 http_method_override: true
39 debug: "%kernel.debug%"
40 strict_variables: "%kernel.debug%"
42 - "LexikFormFilterBundle:Form:form_div_layout.html.twig"
43 exception_controller: wallabag_core.exception_controller:showAction
45 # Doctrine Configuration
48 driver: "%database_driver%"
49 host: "%database_host%"
50 port: "%database_port%"
51 dbname: "%database_name%"
52 user: "%database_user%"
53 password: "%database_password%"
54 charset: "%database_charset%"
55 path: "%database_path%"
56 unix_socket: "%database_socket%"
59 auto_generate_proxy_classes: "%kernel.debug%"
64 stof_doctrine_extensions:
65 default_locale: "%locale%"
66 translation_fallback: true
73 dir_name: "%kernel.project_dir%/app/DoctrineMigrations"
74 namespace: Application\Migrations
75 table_name: migration_versions
76 name: Application Migrations
78 # Swiftmailer Configuration
80 transport: "%mailer_transport%"
81 username: "%mailer_user%"
82 password: "%mailer_password%"
85 encryption: "%mailer_encryption%"
86 auth_mode: "%mailer_auth_mode%"
91 param_fetcher_listener: true
101 - 'application/epub+zip'
103 - 'application/x-mobipocket-ebook'
104 view_response_listener: 'force'
117 failed_validation: HTTP_BAD_REQUEST
124 - { path: "^/api/entries/([0-9]+)/export.(.*)", priorities: ['epub', 'mobi', 'pdf', 'txt', 'csv'], fallback_format: json, prefer_extension: false }
125 - { path: "^/api", priorities: ['json', 'xml'], fallback_format: json, prefer_extension: false }
126 - { path: "^/annotations", priorities: ['json', 'xml'], fallback_format: json, prefer_extension: false }
127 # for an unknown reason, EACH REQUEST goes to FOS\RestBundle\EventListener\FormatListener
128 # so we need to add custom rule for custom api export but also for all other routes of the application...
129 - { path: '^/', priorities: ['text/html', '*/*'], fallback_format: html, prefer_extension: false }
136 name: wallabag API documentation
140 allow_credentials: false
151 allow_headers: ['Authorization','content-type']
152 allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE']
156 allow_headers: ['Authorization','content-type']
157 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
162 allow_headers: ['Authorization','content-type']
163 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
168 load_controllers: false
172 autodetect_theme: wallabag_core.helper.detect_active_theme
176 - "%%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%"
180 firewall_name: secured_area
181 user_class: Wallabag\UserBundle\Entity\User
184 enabled: "%fosuser_confirmation%"
186 address: "%from_email%"
187 sender_name: wallabag
191 client_class: Wallabag\ApiBundle\Entity\Client
192 access_token_class: Wallabag\ApiBundle\Entity\AccessToken
193 refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken
194 auth_code_class: Wallabag\ApiBundle\Entity\AuthCode
196 user_provider: fos_user.user_provider.username_email
198 refresh_token_lifetime: 1209600
203 cookie_name: wllbg_trusted_computer
207 enabled: "%twofactor_auth%"
210 enabled: "%twofactor_auth%"
211 server_name: wallabag
212 issuer: "%domain_name%"
213 template: WallabagUserBundle:Authentication:form.html.twig
216 enabled: "%twofactor_auth%"
217 sender_email: "%twofactor_sender%"
219 template: WallabagUserBundle:Authentication:form.html.twig
220 mailer: wallabag_user.auth_code_mailer
229 host: "%rabbitmq_host%"
230 port: "%rabbitmq_port%"
231 user: "%rabbitmq_user%"
232 password: "%rabbitmq_password%"
239 name: 'wallabag.import.pocket'
244 name: 'wallabag.import.readability'
249 name: 'wallabag.import.pinboard'
254 name: 'wallabag.import.instapaper'
259 name: 'wallabag.import.wallabag_v1'
264 name: 'wallabag.import.wallabag_v2'
269 name: 'wallabag.import.elcurator'
274 name: 'wallabag.import.firefox'
279 name: 'wallabag.import.chrome'
285 name: 'wallabag.import.pocket'
288 name: 'wallabag.import.pocket'
289 callback: wallabag_import.consumer.amqp.pocket
290 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
294 name: 'wallabag.import.readability'
297 name: 'wallabag.import.readability'
298 callback: wallabag_import.consumer.amqp.readability
299 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
303 name: 'wallabag.import.instapaper'
306 name: 'wallabag.import.instapaper'
307 callback: wallabag_import.consumer.amqp.instapaper
308 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
312 name: 'wallabag.import.pinboard'
315 name: 'wallabag.import.pinboard'
316 callback: wallabag_import.consumer.amqp.pinboard
317 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
321 name: 'wallabag.import.wallabag_v1'
324 name: 'wallabag.import.wallabag_v1'
325 callback: wallabag_import.consumer.amqp.wallabag_v1
326 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
330 name: 'wallabag.import.wallabag_v2'
333 name: 'wallabag.import.wallabag_v2'
334 callback: wallabag_import.consumer.amqp.wallabag_v2
335 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
339 name: 'wallabag.import.elcurator'
342 name: 'wallabag.import.elcurator'
343 callback: wallabag_import.consumer.amqp.elcurator
344 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
348 name: 'wallabag.import.firefox'
351 name: 'wallabag.import.firefox'
352 callback: wallabag_import.consumer.amqp.firefox
353 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
357 name: 'wallabag.import.chrome'
360 name: 'wallabag.import.chrome'
361 callback: wallabag_import.consumer.amqp.chrome
362 qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
375 - fos_user_security_logout
380 # to be removed if we switch to (default) ISO8601 datetime instead of ATOM
381 # see: https://github.com/schmittjoh/JMSSerializerBundle/pull/494
383 default_format: "Y-m-d\\TH:i:sO" # ATOM
385 # see https://github.com/symfony/symfony-standard/pull/1133
386 sensio_framework_extra:
393 factory: 'wallabag_core.http_client_factory'
397 plugins: ['httplug.plugin.logger']
398 wallabag_core.entry.download_images:
399 factory: 'httplug.factory.auto'
400 plugins: ['httplug.plugin.logger']
401 wallabag_import.pocket.client:
402 factory: 'httplug.factory.auto'
404 - 'httplug.plugin.logger'
407 'content-type': 'application/json'
408 'X-Accept': 'application/json'
412 # define custom entity so we can override length attribute to fix utf8mb4 issue
414 entity_name: Wallabag\CoreBundle\Entity\InternalSetting