| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function createObjectForm($object, $purpose = null, array $options = array()) |
||
| 19 | { |
||
| 20 | foreach ($this->getCreators() as $creator) { |
||
| 21 | if ($form = $creator->create($object, $purpose, $options)) { |
||
| 22 | return $form; |
||
| 23 | } |
||
| 24 | } |
||
| 25 | |||
| 26 | throw new \RuntimeException(sprintf('The form manager was unable to create the form. Please, make sure you have correctly registered one that fit your need.')); |
||
| 27 | } |
||
| 28 | |||
| 55 |