<?php
/*
* This file is part of EC-CUBE
*
* Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
*
* http://www.ec-cube.co.jp/
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Customize\Form\Type\Front;
use Eccube\Common\EccubeConfig;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Symfony\Component\Form\AbstractTypeExtension;
use Eccube\Form\Type\Admin\CustomerType;
use Eccube\Form\Type\Front\EntryType;
use Symfony\Component\Form\FormBuilderInterface;
class CustomizeEntryType extends AbstractTypeExtension
{
/**
* @var EccubeConfig
*/
protected $eccubeConfig;
/**
* @param EccubeConfig $eccubeConfig
*/
public function __construct(EccubeConfig $eccubeConfig)
{
$this->eccubeConfig = $eccubeConfig;
}
/**
* {@inheritdoc}
*/
public function buildForm(FormBuilderInterface $builder, array $options)
{
dump($builder);
$builder->add('emailcc1', EmailType::class, [
'label' => 'メールアドレス(CC用1)',
'required' => false,
]);
$builder->add('emailcc2', EmailType::class, [
'label' => 'メールアドレス(CC用2)',
'required' => false,
]);
$builder->add('emailcc3', EmailType::class, [
'label' => 'メールアドレス(CC用3)',
'required' => false,
]);
$builder->add('emailcc4', EmailType::class, [
'label' => 'メールアドレス(CC用4)',
'required' => false,
]);
$builder->add('emailcc5', EmailType::class, [
'label' => 'メールアドレス(CC用5)',
'required' => false,
]);
$builder->add('emailcc6', EmailType::class, [
'label' => 'メールアドレス(CC用6)',
'required' => false,
]);
$builder->add('emailcc7', EmailType::class, [
'label' => 'メールアドレス(CC用7)',
'required' => false,
]);
$builder->add('emailcc8', EmailType::class, [
'label' => 'メールアドレス(CC用8)',
'required' => false,
]);
$builder->add('emailcc9', EmailType::class, [
'label' => 'メールアドレス(CC用9)',
'required' => false,
]);
$builder->add('emailcc10', EmailType::class, [
'label' => 'メールアドレス(CC用10)',
'required' => false,
]);
}
public static function getExtendedTypes(): iterable
{
yield CustomerType::class;
yield EntryType::class;
}
}