简体   繁体   中英

symfony2: loading entities from web services

I need to load entities from a REST web service in the same way as I would from a database using Doctrin ORM.

Creating REST web services in Symfony is really well documented but I canlt see anythign about consuming them.

I've written losts of apps in straight PHP that load data from REST services but I'm sure there must me a bundle in Symfony that will do it for me in the same way as Doctrin ORM allows me to map to and from databases.

Is there something I'm missing or do I need to write my own custom repsitories to load entities from web services?

you can use a PHP HTTP client framework like guzzle, take a look at :

https://github.com/misd-service-development/guzzle-bundle

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM