File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,7 +39,23 @@ class Format extends BaseConfig
3939 'application/xml ' => \CodeIgniter \Format \XMLFormatter::class,
4040 'text/xml ' => \CodeIgniter \Format \XMLFormatter::class,
4141 ];
42-
42+
43+ /*
44+ |--------------------------------------------------------------------------
45+ | Formatters Options
46+ |--------------------------------------------------------------------------
47+ |
48+ | Additional Options to adjust default formatters behaviour.
49+ | For each mime type, list the additional options that should be used.
50+ | Set to null by default
51+ | Note this will add to the default options not replace it.
52+ |
53+ */
54+ public $ formatterOptions = [
55+ 'application/json ' => JSON_NUMERIC_CHECK ,
56+ 'application/xml ' => null ,
57+ 'text/xml ' => null ,
58+ ];
4359 //--------------------------------------------------------------------
4460
4561 /**
You can’t perform that action at this time.
0 commit comments