Add $objectForMap parameter.

due to commit 238589d4e8
This commit is contained in:
Benoît Burnichon
2015-06-17 17:54:34 +02:00
parent eada8002c6
commit 5b2e81264a

View File

@@ -34,14 +34,14 @@ class YamlCountingParse extends Yaml
self::$parseCallable = $callable; self::$parseCallable = $callable;
} }
public static function parse($input, $exceptionOnInvalidType = false, $objectSupport = false) public static function parse($input, $exceptionOnInvalidType = false, $objectSupport = false, $objectForMap = false)
{ {
self::$parseCount++; self::$parseCount++;
if (null === self::$parseCallable) { if (null === self::$parseCallable) {
return parent::parse($input, $exceptionOnInvalidType, $objectSupport); return parent::parse($input, $exceptionOnInvalidType, $objectSupport, $objectForMap);
} }
return call_user_func(self::$parseCallable, $input, $exceptionOnInvalidType, $objectSupport); return call_user_func(self::$parseCallable, $input, $exceptionOnInvalidType, $objectSupport, $objectForMap);
} }
} }