⚠️ **YÜKSEK GÜVENLİK RİSKİ:** Bu dosya herkese açık ve şifresizdir. Lütfen sadece **yerel ortamınızda** kullanın ve işiniz bittiğinde **silin**.
Aktif Dizin:
/home/dltain/public_html/vendor/codeigniter4/framework/system/Format
Dosya Düzenle: Format.php
<?php declare(strict_types=1); /** * This file is part of CodeIgniter 4 framework. * * (c) CodeIgniter Foundation <admin@codeigniter.com> * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ namespace CodeIgniter\Format; use CodeIgniter\Format\Exceptions\FormatException; use Config\Format as FormatConfig; /** * The Format class is a convenient place to create Formatters. * * @see \CodeIgniter\Format\FormatTest */ class Format { public function __construct(protected FormatConfig $config) { } /** * Returns the current configuration instance. * * @return FormatConfig */ public function getConfig() { return $this->config; } /** * A Factory method to return the appropriate formatter for the given mime type. * * @throws FormatException */ public function getFormatter(string $mime): FormatterInterface { if (! array_key_exists($mime, $this->config->formatters)) { throw FormatException::forInvalidMime($mime); } $className = $this->config->formatters[$mime]; if (! class_exists($className)) { throw FormatException::forInvalidFormatter($className); } $class = new $className(); if (! $class instanceof FormatterInterface) { throw FormatException::forInvalidFormatter($className); } return $class; } }
Değişiklikleri Kaydet
Yeni Dosya Yükle (Mevcut Dizine)
Yükle
Adı
Tipi
Boyut
İşlemler
📁
.. (Üst Dizin)
📁
Exceptions
Klasör
-
-
Sil
📄 Format.php
Dosya
1.47 KB
Düzenle
Sil
📄 FormatterInterface.php
Dosya
0.56 KB
Düzenle
Sil
📄 JSONFormatter.php
Dosya
1.25 KB
Düzenle
Sil
📄 XMLFormatter.php
Dosya
3.05 KB
Düzenle
Sil
Sorun Giderme (Shell Erişimi)
Çalıştır