for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of AppName.
*
* (c) Monofony
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Form\Type\User;
use Sylius\Bundle\UserBundle\Form\Type\UserType;
use Symfony\Component\Form\FormBuilderInterface;
class AppUserType extends UserType
{
/**
* {@inheritdoc}
public function buildForm(FormBuilderInterface $builder, array $options): void
parent::buildForm($builder, $options);
$builder
->remove('username')
->remove('email');
}
public function getBlockPrefix()
return 'sylius_app_user';