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 | const FORM_OBJECT_ALREADY_INJECTED = 'The form object was already injected, you can not override it.'; |
||
26 | |||
27 | /** |
||
28 | * @code 1465242575 |
||
29 | * |
||
30 | * @return self |
||
31 | */ |
||
32 | final public static function duplicatedFormContext() |
||
39 | |||
40 | /** |
||
41 | * @code 1477255145 |
||
42 | * |
||
43 | * @param FormObject $form |
||
44 | * @return self |
||
45 | */ |
||
46 | final public static function formWasAlreadyRegistered(FormObject $form) |
||
56 | |||
57 | /** |
||
58 | * @code 1491481086 |
||
59 | * |
||
60 | * @return self |
||
61 | */ |
||
62 | final public static function formObjectAlreadyInjected() |
||
69 | } |
||
70 |