| 1 | <?php |
||
| 19 | class DuplicateEntryException extends FormzException |
||
| 20 | { |
||
| 21 | const DUPLICATED_FORM_CONTEXT = 'You can not use a form view helper inside another one.'; |
||
| 22 | |||
| 23 | const FORM_WAS_ALREADY_REGISTERED = 'The form "%s" of class "%s" was already registered. You can only register a form once. Check the function `' . Configuration::class . '::hasForm()`.'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @code 1465242575 |
||
| 27 | * |
||
| 28 | * @return self |
||
| 29 | */ |
||
| 30 | final public static function duplicatedFormContext() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @code 1477255145 |
||
| 40 | * |
||
| 41 | * @param FormObject $form |
||
| 42 | * @return DuplicateEntryException |
||
| 43 | */ |
||
| 44 | final public static function formWasAlreadyRegistered(FormObject $form) |
||
| 54 | |||
| 55 | } |
||
| 56 |