Content-Negotiation with the help of Renderer and Formatters
This commit is contained in:
17
Lib/Formatter/Xml.php
Normal file
17
Lib/Formatter/Xml.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace BSR\Lib\Formatter;
|
||||
|
||||
class Xml extends Formatter {
|
||||
protected static function init() {
|
||||
self::registerFormats(array(
|
||||
'text/xml',
|
||||
'application/xml',
|
||||
'application/x-xml',
|
||||
));
|
||||
}
|
||||
|
||||
public function render($data) {
|
||||
throw new \RuntimeException('Not implemented yet.');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user