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 `%s::hasForm()`.'; |
||
24 | |||
25 | /** |
||
26 | * @return self |
||
27 | */ |
||
28 | final public static function duplicatedFormContext() |
||
35 | |||
36 | /** |
||
37 | * @param FormObject $form |
||
38 | * @return self |
||
39 | */ |
||
40 | final public static function formWasAlreadyRegistered(FormObject $form) |
||
51 | } |
||
52 |