0
votes

I want to implement an API using Symfony/API-Platform and I would like to use XML instead of YAML and annotations. For example when I run bin/console make:user to create a user entity, it will be created with doctrine annotations for mapping properties to database fields. What i want is the same functionality but in a XML file.

Is there a possibility to configure symfony to prefer XML configuration?

1

1 Answers

0
votes

Maybe there is a better way to do it, but changing type in mapping configuration to xml may help you. Default file is located here and you need to change type to xml and dir to xml mapping path.