Skip to content

Commit

Permalink
FOSRestBundle config update to accept the new Symfony Debug class
Browse files Browse the repository at this point in the history
  • Loading branch information
Prometee committed Dec 2, 2020
1 parent 3e628d3 commit 9a70331
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config/packages/fos_rest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ fos_rest:
json: true
xml: true
empty_content: 204
zone:
- { path: '^/api/.*' }
format_listener:
rules:
- { path: '^/api/.*', priorities: ['json', 'xml'], fallback_format: json, prefer_extension: true }
Expand Down
2 changes: 1 addition & 1 deletion public/index.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use App\Kernel;
use Symfony\Component\Debug\Debug;
use Symfony\Component\ErrorHandler\Debug;
use Symfony\Component\HttpFoundation\Request;

require dirname(__DIR__).'/config/bootstrap.php';
Expand Down

0 comments on commit 9a70331

Please sign in to comment.