Blabla.
This commit is contained in:
@@ -48,6 +48,7 @@ abstract class Formatter {
|
||||
* @return string The class name to instantiate in accord to the Accept header
|
||||
*/
|
||||
private static function getFormatFromHeader() {
|
||||
return 'BSR\Lib\Formatter\Json';
|
||||
if(isset($_SERVER['HTTP_ACCEPT'])) {
|
||||
$formats = array_map(function($f) {
|
||||
$parts = explode(';', $f);
|
||||
|
||||
Reference in New Issue
Block a user