mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-08-20 08:03:22 +02:00
39 lines
943 B
PHP
39 lines
943 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Config;
|
|
|
|
use App\Validation\FileRules as AppFileRules;
|
|
use CodeIgniter\Config\BaseConfig;
|
|
use CodeIgniter\Validation\StrictRules\CreditCardRules;
|
|
use CodeIgniter\Validation\StrictRules\FileRules;
|
|
use CodeIgniter\Validation\StrictRules\FormatRules;
|
|
use CodeIgniter\Validation\StrictRules\Rules;
|
|
|
|
class Validation extends BaseConfig
|
|
{
|
|
/**
|
|
* Stores the classes that contain the rules that are available.
|
|
*
|
|
* @var string[]
|
|
*/
|
|
public array $ruleSets = [
|
|
Rules::class,
|
|
FormatRules::class,
|
|
FileRules::class,
|
|
CreditCardRules::class,
|
|
AppFileRules::class,
|
|
];
|
|
|
|
/**
|
|
* Specifies the views that are used to display the errors.
|
|
*
|
|
* @var array<string, string>
|
|
*/
|
|
public array $templates = [
|
|
'list' => 'CodeIgniter\Validation\Views\list',
|
|
'single' => 'CodeIgniter\Validation\Views\single',
|
|
];
|
|
}
|