for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of rd_042_s_monofony.
*
* (c) Monofony
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Form\Extension;
use App\Form\EventSubscriber\AddUserFormSubscriber;
use App\Form\Type\User\AppUserType;
use Sylius\Bundle\CustomerBundle\Form\Type\CustomerType;
use Symfony\Component\Form\AbstractTypeExtension;
use Symfony\Component\Form\FormBuilderInterface;
final class CustomerTypeExtension extends AbstractTypeExtension
{
/**
* {@inheritdoc}
public function buildForm(FormBuilderInterface $builder, array $options)
$builder->addEventSubscriber(new AddUserFormSubscriber(AppUserType::class));
}
public static function getExtendedTypes(): iterable
return [CustomerType::class];