mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-03 21:49:56 +09:00
Update composer dependencies
This commit is contained in:
@@ -16,14 +16,14 @@ use Symfony\Component\VarDumper\Cloner\Stub;
|
||||
|
||||
class SymfonyCaster
|
||||
{
|
||||
private static $requestGetters = array(
|
||||
private static $requestGetters = [
|
||||
'pathInfo' => 'getPathInfo',
|
||||
'requestUri' => 'getRequestUri',
|
||||
'baseUrl' => 'getBaseUrl',
|
||||
'basePath' => 'getBasePath',
|
||||
'method' => 'getMethod',
|
||||
'format' => 'getRequestFormat',
|
||||
);
|
||||
];
|
||||
|
||||
public static function castRequest(Request $request, array $a, Stub $stub, $isNested)
|
||||
{
|
||||
@@ -40,4 +40,12 @@ class SymfonyCaster
|
||||
|
||||
return $a;
|
||||
}
|
||||
|
||||
public static function castHttpClient($client, array $a, Stub $stub, $isNested)
|
||||
{
|
||||
$multiKey = sprintf("\0%s\0multi", \get_class($client));
|
||||
$a[$multiKey] = new CutStub($a[$multiKey]);
|
||||
|
||||
return $a;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user