for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the Explicit Architecture POC,
* which is created on top of the Symfony Demo application.
*
* (c) Herberto Graça <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Acme\App\Presentation\Web\Infrastructure\Form\Symfony\Form;
use Acme\App\Presentation\Web\Core\Port\Form\FormInterface;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\FormBuilderInterface;
/**
* Defines the form used to create blog posts.
class CreatePostForm extends EditPostForm
{
public function buildForm(FormBuilderInterface $builder, array $options): void
parent::buildForm($builder, $options);
$builder->add(FormInterface::BUTTON_NAME_SAVE_AND_CREATE_NEW, SubmitType::class);
}