|
46 | 46 | use CodeIgniter\HTTP\URI; |
47 | 47 | use CodeIgniter\HTTP\UserAgent; |
48 | 48 | use CodeIgniter\Images\Handlers\BaseHandler; |
49 | | -use CodeIgniter\Input\InputData; |
| 49 | +use CodeIgniter\Input\InputDataFactory; |
50 | 50 | use CodeIgniter\Language\Language; |
51 | 51 | use CodeIgniter\Lock\LockManager; |
52 | 52 | use CodeIgniter\Log\Logger; |
|
63 | 63 | use CodeIgniter\Superglobals; |
64 | 64 | use CodeIgniter\Throttle\Throttler; |
65 | 65 | use CodeIgniter\Typography\Typography; |
66 | | -use CodeIgniter\Validation\ValidatedInput; |
67 | 66 | use CodeIgniter\Validation\Validation; |
68 | 67 | use CodeIgniter\Validation\ValidationInterface; |
69 | 68 | use CodeIgniter\View\Cell; |
@@ -390,17 +389,15 @@ public static function image(?string $handler = null, ?Images $config = null, bo |
390 | 389 | } |
391 | 390 |
|
392 | 391 | /** |
393 | | - * Returns a typed input data object. |
394 | | - * |
395 | | - * @param array<string, mixed> $data |
| 392 | + * Returns the typed input data factory. |
396 | 393 | */ |
397 | | - public static function inputdata(array $data = [], bool $getShared = false): InputData |
| 394 | + public static function inputdatafactory(bool $getShared = true): InputDataFactory |
398 | 395 | { |
399 | 396 | if ($getShared) { |
400 | | - return static::getSharedInstance('inputdata', $data); |
| 397 | + return static::getSharedInstance('inputdatafactory'); |
401 | 398 | } |
402 | 399 |
|
403 | | - return new InputData($data); |
| 400 | + return new InputDataFactory(); |
404 | 401 | } |
405 | 402 |
|
406 | 403 | /** |
@@ -889,20 +886,6 @@ public static function validation(?ValidationConfig $config = null, bool $getSha |
889 | 886 | return new Validation($config, AppServices::get('renderer')); |
890 | 887 | } |
891 | 888 |
|
892 | | - /** |
893 | | - * Returns a typed validated input object. |
894 | | - * |
895 | | - * @param array<string, mixed> $data |
896 | | - */ |
897 | | - public static function validatedinput(array $data = [], bool $getShared = false): ValidatedInput |
898 | | - { |
899 | | - if ($getShared) { |
900 | | - return static::getSharedInstance('validatedinput', $data); |
901 | | - } |
902 | | - |
903 | | - return new ValidatedInput($data); |
904 | | - } |
905 | | - |
906 | 889 | /** |
907 | 890 | * View cells are intended to let you insert HTML into view |
908 | 891 | * that has been generated by any callable in the system. |
|
0 commit comments