src/Event/FilterEvent.php 1 location
|
@@ 27-33 (lines=7) @@
|
| 24 |
|
* |
| 25 |
|
* @throws Exception |
| 26 |
|
*/ |
| 27 |
|
public function addForm(FormInterface $form, string $identifier) |
| 28 |
|
{ |
| 29 |
|
if (array_key_exists($identifier, $this->forms)) { |
| 30 |
|
throw new Exception('A form with the identifier "'.$identifier.'" was already added'); |
| 31 |
|
} |
| 32 |
|
$this->forms[$identifier] = $form; |
| 33 |
|
} |
| 34 |
|
|
| 35 |
|
/** |
| 36 |
|
* @return FormInterface[] |
src/Event/Events/FormEvent.php 1 location
|
@@ 22-28 (lines=7) @@
|
| 19 |
|
* |
| 20 |
|
* @throws Exception |
| 21 |
|
*/ |
| 22 |
|
public function addForm(FormInterface $form, string $identifier) |
| 23 |
|
{ |
| 24 |
|
if (array_key_exists($identifier, $this->forms)) { |
| 25 |
|
throw new Exception('A form with the identifier "'.$identifier.'" was already added'); |
| 26 |
|
} |
| 27 |
|
$this->forms[$identifier] = $form; |
| 28 |
|
} |
| 29 |
|
|
| 30 |
|
/** |
| 31 |
|
* @return FormInterface[] |