]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Add ability to use socket 2395/head
authorJeremy Benoist <jeremy.benoist@gmail.com>
Fri, 7 Oct 2016 19:00:13 +0000 (21:00 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Fri, 7 Oct 2016 19:00:13 +0000 (21:00 +0200)
For Redis & MySQL

app/config/config.yml
app/config/parameters.yml.dist
src/Wallabag/CoreBundle/Resources/config/services.yml

index 2475ada88269af40856648dd500503256ea92469..337e99f8fc27e4ad4eb25598173f0fde995424e7 100644 (file)
@@ -77,6 +77,7 @@ doctrine:
         password: "%database_password%"
         charset: UTF8
         path: "%database_path%"
+        unix_socket: "%database_socket%"
         server_version: 5.6
 
     orm:
index f2e5bec3c4d908620123b50f0a4ad9f2c9dca162..ece4903a186ba8a3de077466fbac84a02e27b658 100644 (file)
@@ -18,6 +18,7 @@ parameters:
     database_password: ~
     database_path: "%kernel.root_dir%/../data/db/wallabag.sqlite"
     database_table_prefix: wallabag_
+    database_socket: null
 
     mailer_transport:  smtp
     mailer_host:       127.0.0.1
@@ -48,5 +49,7 @@ parameters:
     rabbitmq_password: guest
 
     # Redis processing
+    redis_scheme: tcp
     redis_host: localhost
     redis_port: 6379
+    redis_path: null
index d11398469757c4a60957a2a37c98adeca5b0dfd6..fb97454e7dbc2ccdc3be133a509038bf82d9f8ae 100644 (file)
@@ -119,9 +119,10 @@ services:
         class: Predis\Client
         arguments:
             -
+                scheme: '%redis_scheme%'
                 host: '%redis_host%'
                 port: '%redis_port%'
-                schema: tcp
+                path: '%redis_path%'
 
     wallabag_core.exception_controller:
         class: Wallabag\CoreBundle\Controller\ExceptionController