public function ServicesParserYAML::parse in Services 7.3
Overrides ServicesParserInterface::parse
File
- servers/
rest_server/ includes/ ServicesParser.inc, line 134
Class
Code
public function parse(ServicesContextInterface $context) {
if (($library = libraries_load('spyc')) && !empty($library['loaded'])) {
return Spyc::YAMLLoadString($context
->getPostData());
}
else {
watchdog('REST Server', 'Spyc library not found!', array(), WATCHDOG_ERROR);
return array();
}
}