[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@52.15.115.199: ~ $
<?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;

/**
 * Entry point of the Form component.
 *
 * Use this class to conveniently create new form factories:
 *
 *     use Symfony\Component\Form\Forms;
 *
 *     $formFactory = Forms::createFormFactory();
 *
 *     $form = $formFactory->createBuilder()
 *         ->add('firstName', 'Symfony\Component\Form\Extension\Core\Type\TextType')
 *         ->add('lastName', 'Symfony\Component\Form\Extension\Core\Type\TextType')
 *         ->add('age', 'Symfony\Component\Form\Extension\Core\Type\IntegerType')
 *         ->add('color', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', [
 *             'choices' => ['Red' => 'r', 'Blue' => 'b'],
 *         ])
 *         ->getForm();
 *
 * You can also add custom extensions to the form factory:
 *
 *     $formFactory = Forms::createFormFactoryBuilder()
 *         ->addExtension(new AcmeExtension())
 *         ->getFormFactory();
 *
 * If you create custom form types or type extensions, it is
 * generally recommended to create your own extensions that lazily
 * load these types and type extensions. In projects where performance
 * does not matter that much, you can also pass them directly to the
 * form factory:
 *
 *     $formFactory = Forms::createFormFactoryBuilder()
 *         ->addType(new PersonType())
 *         ->addType(new PhoneNumberType())
 *         ->addTypeExtension(new FormTypeHelpTextExtension())
 *         ->getFormFactory();
 *
 * Support for the Validator component is provided by ValidatorExtension.
 * This extension needs a validator object to function properly:
 *
 *     use Symfony\Component\Validator\Validation;
 *     use Symfony\Component\Form\Extension\Validator\ValidatorExtension;
 *
 *     $validator = Validation::createValidator();
 *     $formFactory = Forms::createFormFactoryBuilder()
 *         ->addExtension(new ValidatorExtension($validator))
 *         ->getFormFactory();
 *
 * Support for the Templating component is provided by TemplatingExtension.
 * This extension needs a PhpEngine object for rendering forms. As second
 * argument you should pass the names of the default themes. Here is an
 * example for using the default layout with "<div>" tags:
 *
 *     use Symfony\Component\Form\Extension\Templating\TemplatingExtension;
 *
 *     $formFactory = Forms::createFormFactoryBuilder()
 *         ->addExtension(new TemplatingExtension($engine, null, [
 *             'FrameworkBundle:Form',
 *         ]))
 *         ->getFormFactory();
 *
 * The next example shows how to include the "<table>" layout:
 *
 *     use Symfony\Component\Form\Extension\Templating\TemplatingExtension;
 *
 *     $formFactory = Forms::createFormFactoryBuilder()
 *         ->addExtension(new TemplatingExtension($engine, null, [
 *             'FrameworkBundle:Form',
 *             'FrameworkBundle:FormTable',
 *         ]))
 *         ->getFormFactory();
 *
 * @author Bernhard Schussek <bschussek@gmail.com>
 */
final class Forms
{
    /**
     * Creates a form factory with the default configuration.
     *
     * @return FormFactoryInterface The form factory
     */
    public static function createFormFactory()
    {
        return self::createFormFactoryBuilder()->getFormFactory();
    }

    /**
     * Creates a form factory builder with the default configuration.
     *
     * @return FormFactoryBuilderInterface The form factory builder
     */
    public static function createFormFactoryBuilder()
    {
        return new FormFactoryBuilder(true);
    }

    /**
     * This class cannot be instantiated.
     */
    private function __construct()
    {
    }
}

Filemanager

Name Type Size Permission Actions
ChoiceList Folder 0755
Command Folder 0755
Console Folder 0755
DependencyInjection Folder 0755
Exception Folder 0755
Extension Folder 0755
Guess Folder 0755
Resources Folder 0755
Test Folder 0755
Tests Folder 0755
Util Folder 0755
.gitignore File 34 B 0644
AbstractExtension.php File 4.77 KB 0644
AbstractRendererEngine.php File 7.46 KB 0644
AbstractType.php File 1.28 KB 0644
AbstractTypeExtension.php File 974 B 0644
Button.php File 8.53 KB 0644
ButtonBuilder.php File 16.51 KB 0644
ButtonTypeInterface.php File 462 B 0644
CHANGELOG.md File 18.51 KB 0644
CallbackTransformer.php File 1.02 KB 0644
ClickableInterface.php File 555 B 0644
DataMapperInterface.php File 2.34 KB 0644
DataTransformerInterface.php File 3.79 KB 0644
Form.php File 36.09 KB 0644
FormBuilder.php File 7.28 KB 0644
FormBuilderInterface.php File 1.97 KB 0644
FormConfigBuilder.php File 19.33 KB 0644
FormConfigBuilderInterface.php File 8.03 KB 0644
FormConfigInterface.php File 6.65 KB 0644
FormError.php File 4.14 KB 0644
FormErrorIterator.php File 7.62 KB 0644
FormEvent.php File 1.18 KB 0644
FormEvents.php File 3.29 KB 0644
FormExtensionInterface.php File 1.62 KB 0644
FormFactory.php File 4.17 KB 0644
FormFactoryBuilder.php File 4.17 KB 0644
FormFactoryBuilderInterface.php File 2.31 KB 0644
FormFactoryInterface.php File 3.94 KB 0644
FormInterface.php File 10.02 KB 0644
FormRegistry.php File 5.07 KB 0644
FormRegistryInterface.php File 1.32 KB 0644
FormRenderer.php File 11.55 KB 0644
FormRendererEngineInterface.php File 6.48 KB 0644
FormRendererInterface.php File 3.41 KB 0644
FormTypeExtensionInterface.php File 1.62 KB 0644
FormTypeGuesserChain.php File 2.88 KB 0644
FormTypeGuesserInterface.php File 2.14 KB 0644
FormTypeInterface.php File 3.07 KB 0644
FormView.php File 3.51 KB 0644
Forms.php File 3.76 KB 0644
LICENSE File 1.04 KB 0644
NativeRequestHandler.php File 7.53 KB 0644
PreloadedExtension.php File 2.18 KB 0644
README.md File 488 B 0644
RequestHandlerInterface.php File 860 B 0644
ResolvedFormType.php File 6.75 KB 0644
ResolvedFormTypeFactory.php File 658 B 0644
ResolvedFormTypeFactoryInterface.php File 1.17 KB 0644
ResolvedFormTypeInterface.php File 3.26 KB 0644
ReversedTransformer.php File 1.03 KB 0644
SubmitButton.php File 1.2 KB 0644
SubmitButtonBuilder.php File 624 B 0644
SubmitButtonTypeInterface.php File 474 B 0644
composer.json File 2.05 KB 0644
phpunit.xml.dist File 882 B 0644