Skip to content

Commit 521cdc9

Browse files
authored
Merge pull request #1222 from samsonasik/docfix-formatter-namespace
doc fix: FormatterInterface namespace
2 parents 5562caa + d3fc172 commit 521cdc9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

user_guide_src/source/libraries/api_responses.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ type of response to return. If no matches are found between what the client requ
8585
format in this array is what will be returned.
8686

8787
Next, you need to define the class that is used to format the array of data. This must be a fully qualified class
88-
name, and the class must implement **CodeIgniter\\API\\FormatterInterface**. Formatters come out of the box that
88+
name, and the class must implement **CodeIgniter\\Format\\FormatterInterface**. Formatters come out of the box that
8989
support both JSON and XML::
9090

9191
public $formatters = [
92-
'application/json' => \CodeIgniter\API\JSONFormatter::class,
93-
'application/xml' => \CodeIgniter\API\XMLFormatter::class
92+
'application/json' => \CodeIgniter\Format\JSONFormatter::class,
93+
'application/xml' => \CodeIgniter\Format\XMLFormatter::class
9494
];
9595

9696
So, if your request asks for JSON formatted data in an **Accept** header, the data array you pass any of the

0 commit comments

Comments
 (0)