mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-24 14:57:26 +08:00
Sabre\Xml - Call to undefined function
This commit is contained in:
parent
19d7082d58
commit
ada4f01ee2
3 changed files with 5 additions and 0 deletions
|
@ -72,6 +72,7 @@ class Elements implements Xml\Element
|
|||
*/
|
||||
public function xmlSerialize(Xml\Writer $writer): void
|
||||
{
|
||||
require_once __DIR__ . '/../Serializer/functions.php';
|
||||
Serializer\enum($writer, $this->value);
|
||||
}
|
||||
|
||||
|
@ -97,6 +98,7 @@ class Elements implements Xml\Element
|
|||
*/
|
||||
public static function xmlDeserialize(Xml\Reader $reader): array
|
||||
{
|
||||
require_once __DIR__ . '/../Deserializer/functions.php';
|
||||
return Deserializer\enum($reader);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -242,9 +242,11 @@ class Service
|
|||
{
|
||||
list($namespace) = self::parseClarkNotation($elementName);
|
||||
|
||||
require_once __DIR__ . '/Deserializer/functions.php';
|
||||
$this->elementMap[$elementName] = function (Reader $reader) use ($className, $namespace) {
|
||||
return \Sabre\Xml\Deserializer\valueObject($reader, $className, $namespace);
|
||||
};
|
||||
require_once __DIR__ . '/Serializer/functions.php';
|
||||
$this->classMap[$className] = function (Writer $writer, $valueObject) use ($namespace) {
|
||||
\Sabre\Xml\Serializer\valueObject($writer, $valueObject, $namespace);
|
||||
};
|
||||
|
|
|
@ -96,6 +96,7 @@ class Writer extends XMLWriter
|
|||
*/
|
||||
public function write($value): void
|
||||
{
|
||||
require_once __DIR__ . '/Serializer/functions.php';
|
||||
Serializer\standardSerializer($this, $value);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue