Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: changing the default deserializer #211

Open
priyadi opened this issue Jan 10, 2022 · 0 comments
Open

Feature request: changing the default deserializer #211

priyadi opened this issue Jan 10, 2022 · 0 comments

Comments

@priyadi
Copy link

priyadi commented Jan 10, 2022

Right now the parser falls back to Sabre\Xml\Element\Base::xmlDeserialize if the element's name is not registered in $this->elementMap.

return ['Sabre\\Xml\\Element\\Base', 'xmlDeserialize'];

I propose making this default configurable. With some XMLs, people extend them in a way that is impossible to know every vendor-specific variation out there. It would be nice if we can parse these elements into a generic class that fits with the rest of the resulting data structure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant