コード例 #1
0
 /**
  * Handle the command.
  *
  * @param PartialFormBuilder $builder
  */
 public function handle(PartialFormBuilder $builder)
 {
     $builder->setEntry($this->partial->getId());
     $this->builder->addForm('partial', $builder);
 }
コード例 #2
0
 /**
  * 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'))));
 }