]> Raphaƫl G. Git Repositories - packbundle/blobdiff - DependencyInjection/Configuration.php
Version 0.6.3
[packbundle] / DependencyInjection / Configuration.php
index a87c11505091172be17c29149a4c90d93c38f849..5773167da976eb12f39a6cd91147d6f6157158c2 100644 (file)
@@ -55,7 +55,7 @@ class Configuration implements ConfigurationInterface {
                                'http' => [
                                        'max_redirects' => $_ENV['RAPSYSPACK_REDIRECT'] ?? 20,
                                        'timeout' => $_ENV['RAPSYSPACK_TIMEOUT'] ?? (($timeout = ini_get('default_socket_timeout')) !== false && $timeout !== '' ? (float)$timeout : 60),
-                                       'user_agent' => $_ENV['RAPSYSPACK_AGENT'] ?? (($agent = ini_get('user_agent')) !== false && $agent !== '' ? (string)$agent : $alias.'/'.($version = RapsysPackBundle::getVersion()))
+                                       'user_agent' => ($_ENV['RAPSYSPACK_AGENT'] ?? '') ?: (($agent = (string) ini_get('user_agent')) ?: $alias.'/'.($version = RapsysPackBundle::getVersion()))
                                ]
                        ],
                        'facebook' => [
@@ -156,10 +156,9 @@ class Configuration implements ConfigurationInterface {
                                'captcha' => 'captcha',
                                'css' => 'css',
                                'facebook' => 'facebook',
-                               'img' => 'img',
+                               'img' => 'image',
                                'map' => 'map',
                                'multi' => 'multi',
-                               'pack' => 'pack',
                                'thumb' => 'thumb',
                                'js' => 'js'
                        ],