/** * Handle the command. * * @param PartialFormBuilder $builder */ public function handle(PartialFormBuilder $builder) { $builder->setEntry($this->partial->getId()); $this->builder->addForm('partial', $builder); }
/** * Handle the command. * * @param TypeRepositoryInterface $types * @param PartialFormBuilder $builder * @param Request $request */ public function handle(TypeRepositoryInterface $types, PartialFormBuilder $builder, Request $request) { $this->builder->addForm('partial', $builder->setType($types->find($request->get('type')))); }