/** * @return CreateFormContainer */ public function create() { $type = CreateProjectType::class; $data = new Project(); $options = ['action' => $this->getActionUrl(), 'method' => 'POST']; $form = $this->formFactory->create($type, $data, $options); $form->add('submit', SubmitType::class, ['label' => 'Track']); return new CreateFormContainer($form); }