Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.217.117
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
v3.cesa.co.za /
vendor /
symfony /
form /
Delete
Unzip
Name
Size
Permission
Date
Action
ChoiceList
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Command
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Console
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
DependencyInjection
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Event
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Exception
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Extension
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Guess
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Resources
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Test
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Util
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
.htaccess
237
B
-r-xr-xr-x
2026-08-17 03:12
AbstractExtension.php
4.46
KB
-rwxrwxr-x
2026-03-13 14:59
AbstractRendererEngine.php
7.79
KB
-rwxrwxr-x
2026-03-13 14:59
AbstractType.php
1.3
KB
-rwxrwxr-x
2026-03-13 14:59
AbstractTypeExtension.php
970
B
-rwxrwxr-x
2026-03-13 14:59
Button.php
7.93
KB
-rwxrwxr-x
2026-03-13 14:59
ButtonBuilder.php
15.71
KB
-rwxrwxr-x
2026-03-13 14:59
ButtonTypeInterface.php
462
B
-rwxrwxr-x
2026-03-13 14:59
CHANGELOG.md
32.58
KB
-rwxrwxr-x
2026-03-13 14:59
CallbackTransformer.php
832
B
-rwxrwxr-x
2026-03-13 14:59
ClearableErrorsInterface.php
648
B
-rwxrwxr-x
2026-03-13 14:59
ClickableInterface.php
501
B
-rwxrwxr-x
2026-03-13 14:59
DataAccessorInterface.php
1.57
KB
-rwxrwxr-x
2026-03-13 14:59
DataMapperInterface.php
2.47
KB
-rwxrwxr-x
2026-03-13 14:59
DataTransformerInterface.php
3.89
KB
-rwxrwxr-x
2026-03-13 14:59
FileUploadError.php
338
B
-rwxrwxr-x
2026-03-13 14:59
Form.php
36.11
KB
-rwxrwxr-x
2026-03-13 14:59
FormBuilder.php
6.85
KB
-rwxrwxr-x
2026-03-13 14:59
FormBuilderInterface.php
1.86
KB
-rwxrwxr-x
2026-03-13 14:59
FormConfigBuilder.php
18.16
KB
-rwxrwxr-x
2026-03-13 14:59
FormConfigBuilderInterface.php
7.15
KB
-rwxrwxr-x
2026-03-13 14:59
FormConfigInterface.php
5.13
KB
-rwxrwxr-x
2026-03-13 14:59
FormError.php
3.14
KB
-rwxrwxr-x
2026-03-13 14:59
FormErrorIterator.php
7.39
KB
-rwxrwxr-x
2026-03-13 14:59
FormEvent.php
1.05
KB
-rwxrwxr-x
2026-03-13 14:59
FormEvents.php
4.02
KB
-rwxrwxr-x
2026-03-13 14:59
FormExtensionInterface.php
1.4
KB
-rwxrwxr-x
2026-03-13 14:59
FormFactory.php
3.76
KB
-rwxrwxr-x
2026-03-13 14:59
FormFactoryBuilder.php
3.85
KB
-rwxrwxr-x
2026-03-13 14:59
FormFactoryBuilderInterface.php
2.35
KB
-rwxrwxr-x
2026-03-13 14:59
FormFactoryInterface.php
3.06
KB
-rwxrwxr-x
2026-03-13 14:59
FormInterface.php
9.26
KB
-rwxrwxr-x
2026-03-13 14:59
FormRegistry.php
4.57
KB
-rwxrwxr-x
2026-03-13 14:59
FormRegistryInterface.php
1.13
KB
-rwxrwxr-x
2026-03-13 14:59
FormRenderer.php
11.84
KB
-rwxrwxr-x
2026-03-13 14:59
FormRendererEngineInterface.php
6.11
KB
-rwxrwxr-x
2026-03-13 14:59
FormRendererInterface.php
3
KB
-rwxrwxr-x
2026-03-13 14:59
FormTypeExtensionInterface.php
1.71
KB
-rwxrwxr-x
2026-03-13 14:59
FormTypeGuesserChain.php
2.55
KB
-rwxrwxr-x
2026-03-13 14:59
FormTypeGuesserInterface.php
1.09
KB
-rwxrwxr-x
2026-03-13 14:59
FormTypeInterface.php
2.89
KB
-rwxrwxr-x
2026-03-13 14:59
FormView.php
3.46
KB
-rwxrwxr-x
2026-03-13 14:59
Forms.php
2.73
KB
-rwxrwxr-x
2026-03-13 14:59
LICENSE
1.04
KB
-rwxrwxr-x
2026-03-13 14:59
NativeRequestHandler.php
7.33
KB
-rwxrwxr-x
2026-03-13 14:59
PreloadedExtension.php
1.97
KB
-rwxrwxr-x
2026-03-13 14:59
README.md
483
B
-rwxrwxr-x
2026-03-13 14:59
RequestHandlerInterface.php
705
B
-rwxrwxr-x
2026-03-13 14:59
ResolvedFormType.php
5.32
KB
-rwxrwxr-x
2026-03-13 14:59
ResolvedFormTypeFactory.php
649
B
-rwxrwxr-x
2026-03-13 14:59
ResolvedFormTypeFactoryInterface.php
1.15
KB
-rwxrwxr-x
2026-03-13 14:59
ResolvedFormTypeInterface.php
2.17
KB
-rwxrwxr-x
2026-03-13 14:59
ReversedTransformer.php
1008
B
-rwxrwxr-x
2026-03-13 14:59
SubmitButton.php
1.07
KB
-rwxrwxr-x
2026-03-13 14:59
SubmitButtonBuilder.php
592
B
-rwxrwxr-x
2026-03-13 14:59
SubmitButtonTypeInterface.php
474
B
-rwxrwxr-x
2026-03-13 14:59
composer.json
2.25
KB
-rwxrwxr-x
2026-03-13 14:59
Save
Rename
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Form; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\Form\Exception\BadMethodCallException; use Symfony\Component\Form\Exception\InvalidArgumentException; use Symfony\Component\Form\Exception\UnexpectedTypeException; use Symfony\Component\Form\Extension\Core\Type\TextType; /** * A builder for creating {@link Form} instances. * * @author Bernhard Schussek <bschussek@gmail.com> * * @implements \IteratorAggregate<string, FormBuilderInterface> */ class FormBuilder extends FormConfigBuilder implements \IteratorAggregate, FormBuilderInterface { /** * The children of the form builder. * * @var FormBuilderInterface[] */ private array $children = []; /** * The data of children who haven't been converted to form builders yet. */ private array $unresolvedChildren = []; public function __construct(?string $name, ?string $dataClass, EventDispatcherInterface $dispatcher, FormFactoryInterface $factory, array $options = []) { parent::__construct($name, $dataClass, $dispatcher, $options); $this->setFormFactory($factory); } public function add(FormBuilderInterface|string $child, ?string $type = null, array $options = []): static { if ($this->locked) { throw new BadMethodCallException('FormBuilder methods cannot be accessed anymore once the builder is turned into a FormConfigInterface instance.'); } if ($child instanceof FormBuilderInterface) { $this->children[$child->getName()] = $child; // In case an unresolved child with the same name exists unset($this->unresolvedChildren[$child->getName()]); return $this; } if (!\is_string($child) && !\is_int($child)) { throw new UnexpectedTypeException($child, 'string or Symfony\Component\Form\FormBuilderInterface'); } // Add to "children" to maintain order $this->children[$child] = null; $this->unresolvedChildren[$child] = [$type, $options]; return $this; } public function create(string $name, ?string $type = null, array $options = []): FormBuilderInterface { if ($this->locked) { throw new BadMethodCallException('FormBuilder methods cannot be accessed anymore once the builder is turned into a FormConfigInterface instance.'); } if (null === $type && null === $this->getDataClass()) { $type = TextType::class; } if (null !== $type) { return $this->getFormFactory()->createNamedBuilder($name, $type, null, $options); } return $this->getFormFactory()->createBuilderForProperty($this->getDataClass(), $name, null, $options); } public function get(string $name): FormBuilderInterface { if ($this->locked) { throw new BadMethodCallException('FormBuilder methods cannot be accessed anymore once the builder is turned into a FormConfigInterface instance.'); } if (isset($this->unresolvedChildren[$name])) { return $this->resolveChild($name); } if (isset($this->children[$name])) { return $this->children[$name]; } throw new InvalidArgumentException(\sprintf('The child with the name "%s" does not exist.', $name)); } public function remove(string $name): static { if ($this->locked) { throw new BadMethodCallException('FormBuilder methods cannot be accessed anymore once the builder is turned into a FormConfigInterface instance.'); } unset($this->unresolvedChildren[$name], $this->children[$name]); return $this; } public function has(string $name): bool { if ($this->locked) { throw new BadMethodCallException('FormBuilder methods cannot be accessed anymore once the builder is turned into a FormConfigInterface instance.'); } return isset($this->unresolvedChildren[$name]) || isset($this->children[$name]); } public function all(): array { if ($this->locked) { throw new BadMethodCallException('FormBuilder methods cannot be accessed anymore once the builder is turned into a FormConfigInterface instance.'); } $this->resolveChildren(); return $this->children; } public function count(): int { if ($this->locked) { throw new BadMethodCallException('FormBuilder methods cannot be accessed anymore once the builder is turned into a FormConfigInterface instance.'); } return \count($this->children); } public function getFormConfig(): FormConfigInterface { /** @var self $config */ $config = parent::getFormConfig(); $config->children = []; $config->unresolvedChildren = []; return $config; } public function getForm(): FormInterface { if ($this->locked) { throw new BadMethodCallException('FormBuilder methods cannot be accessed anymore once the builder is turned into a FormConfigInterface instance.'); } $this->resolveChildren(); $form = new Form($this->getFormConfig()); foreach ($this->children as $child) { // Automatic initialization is only supported on root forms $form->add($child->setAutoInitialize(false)->getForm()); } if ($this->getAutoInitialize()) { // Automatically initialize the form if it is configured so $form->initialize(); } return $form; } /** * @return \Traversable<string, FormBuilderInterface> */ public function getIterator(): \Traversable { if ($this->locked) { throw new BadMethodCallException('FormBuilder methods cannot be accessed anymore once the builder is turned into a FormConfigInterface instance.'); } return new \ArrayIterator($this->all()); } /** * Converts an unresolved child into a {@link FormBuilderInterface} instance. */ private function resolveChild(string $name): FormBuilderInterface { [$type, $options] = $this->unresolvedChildren[$name]; unset($this->unresolvedChildren[$name]); return $this->children[$name] = $this->create($name, $type, $options); } /** * Converts all unresolved children into {@link FormBuilder} instances. */ private function resolveChildren(): void { foreach ($this->unresolvedChildren as $name => $info) { $this->children[$name] = $this->create($name, $info[0], $info[1]); } $this->unresolvedChildren = []; } }