X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/packbundle/blobdiff_plain/83d4ed48a47b2b7104e8d8b8b92f9338aa474255..c2448a710427b2ea155055d430b6efeed99c785d:/DependencyInjection/Configuration.php diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 8dce3c8..5773167 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -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' ], @@ -224,7 +223,7 @@ class Configuration implements ConfigurationInterface { ->children() ->scalarNode('max_redirects')->defaultValue($defaults['context']['http']['max_redirects'])->end() ->scalarNode('timeout')->defaultValue($defaults['context']['http']['timeout'])->end() - ->scalarNode('user_agent')->cannotBeEmpty()->defaultValue($defaults['context']['http']['user_agent'])->end() + ->scalarNode('user_agent')->defaultValue($defaults['context']['http']['user_agent'])->end() ->end() ->end() ->end()