| 1 | <?php |
||
| 10 | class FormFactory |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var FormFactoryInterface |
||
| 14 | */ |
||
| 15 | protected $formFactory; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * FormFactory constructor. |
||
| 19 | * |
||
| 20 | * @param FormFactoryInterface $formFactory |
||
| 21 | */ |
||
| 22 | public function __construct(FormFactoryInterface $formFactory) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param $formType |
||
| 29 | * @param $entity |
||
| 30 | * @param AdminInterface $admin |
||
| 31 | * |
||
| 32 | * @return FormInterface |
||
| 33 | * |
||
| 34 | * @throws Exception |
||
| 35 | */ |
||
| 36 | public function create($formType, $entity, AdminInterface $admin) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param AdminInterface $admin |
||
| 57 | * @return FormInterface |
||
| 58 | */ |
||
| 59 | protected function guessForm(AdminInterface $admin) |
||
| 72 | } |
||
| 73 |