Skip to content

Commit

Permalink
refactor: Remove deprecated Config\Format::getFormatter()
Browse files Browse the repository at this point in the history
  • Loading branch information
neznaika0 committed Jan 12, 2025
1 parent f67bc68 commit 2dff495
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions app/Config/Format.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Config;

use CodeIgniter\Config\BaseConfig;
use CodeIgniter\Format\FormatterInterface;
use CodeIgniter\Format\JSONFormatter;
use CodeIgniter\Format\XMLFormatter;

Expand Down Expand Up @@ -62,16 +61,4 @@ class Format extends BaseConfig
'application/xml' => 0,
'text/xml' => 0,
];

/**
* A Factory method to return the appropriate formatter for the given mime type.
*
* @return FormatterInterface
*
* @deprecated This is an alias of `\CodeIgniter\Format\Format::getFormatter`. Use that instead.
*/
public function getFormatter(string $mime)
{
return service('format')->getFormatter($mime);
}
}

0 comments on commit 2dff495

Please sign in to comment.