1 | <?php |
||
21 | class DuplicateEntryException extends FormzException |
||
22 | { |
||
23 | const DUPLICATED_FORM_CONTEXT = 'You can not use a form view helper inside another one.'; |
||
24 | |||
25 | const FORM_WAS_ALREADY_REGISTERED = 'The form "%s" was already registered. You can only register a form once. Check the function `%s::hasForm()`.'; |
||
26 | |||
27 | const FORM_INSTANCE_ALREADY_ADDED = 'The form instance was already added for the form object of class "%s". You cannot add it twice.'; |
||
28 | |||
29 | const FORM_OBJECT_INSTANCE_ALREADY_REGISTERED = 'The form instance of type "%s" (name "%s") was already registered in the form object factory.'; |
||
30 | |||
31 | /** |
||
32 | * @code 1465242575 |
||
33 | * |
||
34 | * @return self |
||
35 | */ |
||
36 | final public static function duplicatedFormContext() |
||
43 | |||
44 | /** |
||
45 | * @code 1477255145 |
||
46 | * |
||
47 | * @param FormObjectStatic $form |
||
48 | * @return self |
||
49 | */ |
||
50 | final public static function formWasAlreadyRegistered(FormObjectStatic $form) |
||
60 | |||
61 | /** |
||
62 | * @code 1491898212 |
||
63 | * |
||
64 | * @param FormObject $formObject |
||
65 | * @return self |
||
66 | */ |
||
67 | final public static function formInstanceAlreadyAdded(FormObject $formObject) |
||
77 | |||
78 | /** |
||
79 | * @code 1494515318 |
||
80 | * |
||
81 | * @param FormInterface $form |
||
82 | * @param string $name |
||
83 | * @return self |
||
84 | */ |
||
85 | final public static function formObjectInstanceAlreadyRegistered(FormInterface $form, $name) |
||
95 | } |
||
96 |