From 4deb82f84267e6de4b2766a627961d9f1caf0f1c Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 2 Oct 2010 12:38:11 +0200 Subject: [PATCH] [Form] fixed license and phpdoc --- src/Symfony/Component/Form/BirthdayField.php | 9 +++++---- src/Symfony/Component/Form/CheckboxField.php | 7 ++++--- src/Symfony/Component/Form/ChoiceField.php | 9 +++++++++ src/Symfony/Component/Form/CollectionField.php | 18 +++++++++--------- src/Symfony/Component/Form/Configurable.php | 9 +++++++++ .../Configurator/ConfiguratorInterface.php | 9 +++++++++ .../Configurator/ValidatorConfigurator.php | 9 +++++++++ src/Symfony/Component/Form/DateField.php | 17 +++++++++-------- src/Symfony/Component/Form/DateTimeField.php | 9 +++++++++ .../Form/Exception/AlreadyBoundException.php | 9 +++++++++ .../Component/Form/Exception/FormException.php | 9 +++++++++ .../InvalidConfigurationException.php | 9 +++++++++ .../Form/Exception/InvalidOptionsException.php | 9 +++++++++ .../Exception/InvalidPropertyException.php | 9 +++++++++ .../Exception/InvalidPropertyPathException.php | 9 +++++++++ .../Form/Exception/MissingOptionsException.php | 9 +++++++++ .../Form/Exception/NotInitializedException.php | 9 +++++++++ .../Form/Exception/NotValidException.php | 9 +++++++++ .../PropertyAccessDeniedException.php | 9 +++++++++ .../Form/Exception/UnexpectedTypeException.php | 9 +++++++++ src/Symfony/Component/Form/Field.php | 9 +++++++++ src/Symfony/Component/Form/FieldGroup.php | 18 +++++++++--------- .../Component/Form/FieldGroupInterface.php | 9 +++++++++ src/Symfony/Component/Form/FieldInterface.php | 12 ++++++++++-- src/Symfony/Component/Form/FileField.php | 7 ++++--- src/Symfony/Component/Form/Form.php | 14 +++++++------- src/Symfony/Component/Form/HiddenField.php | 7 ++++--- src/Symfony/Component/Form/HybridField.php | 9 +++++++++ src/Symfony/Component/Form/InputField.php | 9 +++++++++ src/Symfony/Component/Form/IntegerField.php | 9 +++++++++ ...RecursiveFieldsWithPropertyPathIterator.php | 9 +++++++++ src/Symfony/Component/Form/Localizable.php | 9 +++++++++ src/Symfony/Component/Form/NumberField.php | 13 +++++++------ src/Symfony/Component/Form/PasswordField.php | 7 ++++--- src/Symfony/Component/Form/PercentField.php | 13 +++++++------ src/Symfony/Component/Form/PropertyPath.php | 9 +++++++++ src/Symfony/Component/Form/RadioField.php | 9 +++++---- src/Symfony/Component/Form/RepeatedField.php | 7 ++++--- src/Symfony/Component/Form/TextField.php | 9 +++++---- src/Symfony/Component/Form/TextareaField.php | 7 ++++--- src/Symfony/Component/Form/TimeField.php | 9 +++++++++ src/Symfony/Component/Form/TimezoneField.php | 9 +++++++++ src/Symfony/Component/Form/ToggleField.php | 13 +++++++------ .../ValueTransformer/BaseValueTransformer.php | 9 +++++++++ .../BooleanToStringTransformer.php | 9 +++++++++ .../DateTimeToArrayTransformer.php | 9 +++++++++ .../DateTimeToLocalizedStringTransformer.php | 9 +++++++++ .../MoneyToLocalizedStringTransformer.php | 9 +++++++++ .../NumberToLocalizedStringTransformer.php | 9 +++++++++ .../PercentToLocalizedStringTransformer.php | 9 +++++++++ .../ValueTransformer/ReversedTransformer.php | 9 +++++++++ .../StringToDateTimeTransformer.php | 9 +++++++++ .../TimestampToDateTimeTransformer.php | 9 +++++++++ .../TransformationFailedException.php | 9 +++++++++ .../ValueTransformer/ValueTransformerChain.php | 9 +++++++++ .../ValueTransformerInterface.php | 9 +++++++++ 56 files changed, 455 insertions(+), 83 deletions(-) diff --git a/src/Symfony/Component/Form/BirthdayField.php b/src/Symfony/Component/Form/BirthdayField.php index e1029788d5..f67c38afe5 100644 --- a/src/Symfony/Component/Form/BirthdayField.php +++ b/src/Symfony/Component/Form/BirthdayField.php @@ -3,11 +3,12 @@ namespace Symfony\Component\Form; /* - * This file is part of the symfony package. + * This file is part of the Symfony framework. + * * (c) Fabien Potencier * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. */ /** @@ -31,4 +32,4 @@ class BirthdayField extends DateField parent::configure(); } -} \ No newline at end of file +} diff --git a/src/Symfony/Component/Form/CheckboxField.php b/src/Symfony/Component/Form/CheckboxField.php index 3aa838db3f..6fd3971725 100644 --- a/src/Symfony/Component/Form/CheckboxField.php +++ b/src/Symfony/Component/Form/CheckboxField.php @@ -3,11 +3,12 @@ namespace Symfony\Component\Form; /* - * This file is part of the symfony package. + * This file is part of the Symfony framework. + * * (c) Fabien Potencier * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. */ /** diff --git a/src/Symfony/Component/Form/ChoiceField.php b/src/Symfony/Component/Form/ChoiceField.php index 174eb0caea..e05bbcd7d8 100644 --- a/src/Symfony/Component/Form/ChoiceField.php +++ b/src/Symfony/Component/Form/ChoiceField.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + use Symfony\Component\Form\Exception\UnexpectedTypeException; /** diff --git a/src/Symfony/Component/Form/CollectionField.php b/src/Symfony/Component/Form/CollectionField.php index 4220894463..e3b3486b07 100644 --- a/src/Symfony/Component/Form/CollectionField.php +++ b/src/Symfony/Component/Form/CollectionField.php @@ -2,20 +2,20 @@ namespace Symfony\Component\Form; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + use Symfony\Component\Form\FieldInterface; use Symfony\Component\Form\Exception\UnexpectedTypeException; -/* - * This file is part of the symfony package. - * (c) Fabien Potencier - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - /** * @author Bernhard Schussek - * @version SVN: $Id: FieldGroup.php 79 2009-12-08 12:53:15Z bernhard $ */ class CollectionField extends FieldGroup { diff --git a/src/Symfony/Component/Form/Configurable.php b/src/Symfony/Component/Form/Configurable.php index eef1178690..455286d7db 100644 --- a/src/Symfony/Component/Form/Configurable.php +++ b/src/Symfony/Component/Form/Configurable.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + use Symfony\Component\Form\Exception\MissingOptionsException; use Symfony\Component\Form\Exception\InvalidOptionsException; diff --git a/src/Symfony/Component/Form/Configurator/ConfiguratorInterface.php b/src/Symfony/Component/Form/Configurator/ConfiguratorInterface.php index 1d11f7ab1d..b13c30e0f2 100644 --- a/src/Symfony/Component/Form/Configurator/ConfiguratorInterface.php +++ b/src/Symfony/Component/Form/Configurator/ConfiguratorInterface.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\Configurator; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + interface ConfiguratorInterface { public function initialize($object); diff --git a/src/Symfony/Component/Form/Configurator/ValidatorConfigurator.php b/src/Symfony/Component/Form/Configurator/ValidatorConfigurator.php index 7e08871ab0..3a4cbee8e1 100644 --- a/src/Symfony/Component/Form/Configurator/ValidatorConfigurator.php +++ b/src/Symfony/Component/Form/Configurator/ValidatorConfigurator.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\Configurator; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + class ValidatorConfigurator implements ConfiguratorInterface { protected $metaData = null; diff --git a/src/Symfony/Component/Form/DateField.php b/src/Symfony/Component/Form/DateField.php index d475d70899..399986f562 100644 --- a/src/Symfony/Component/Form/DateField.php +++ b/src/Symfony/Component/Form/DateField.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + use Symfony\Component\Form\ValueTransformer\ReversedTransformer; use Symfony\Component\Form\ValueTransformer\StringToDateTimeTransformer; use Symfony\Component\Form\ValueTransformer\TimestampToDateTimeTransformer; @@ -9,14 +18,6 @@ use Symfony\Component\Form\ValueTransformer\ValueTransformerChain; use Symfony\Component\Form\ValueTransformer\DateTimeToLocalizedStringTransformer; use Symfony\Component\Form\ValueTransformer\DateTimeToArrayTransformer; -/* - * This file is part of the symfony package. - * (c) Fabien Potencier - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - class DateField extends HybridField { const FULL = 'full'; diff --git a/src/Symfony/Component/Form/DateTimeField.php b/src/Symfony/Component/Form/DateTimeField.php index 88fb1dac6d..1bc373cac8 100644 --- a/src/Symfony/Component/Form/DateTimeField.php +++ b/src/Symfony/Component/Form/DateTimeField.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + use Symfony\Component\Form\ValueTransformer\StringToDateTimeTransformer; use Symfony\Component\Form\ValueTransformer\TimestampToDateTimeTransformer; use Symfony\Component\Form\ValueTransformer\DateTimeToArrayTransformer; diff --git a/src/Symfony/Component/Form/Exception/AlreadyBoundException.php b/src/Symfony/Component/Form/Exception/AlreadyBoundException.php index 0789a29425..57e1a65157 100644 --- a/src/Symfony/Component/Form/Exception/AlreadyBoundException.php +++ b/src/Symfony/Component/Form/Exception/AlreadyBoundException.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\Exception; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + class AlreadyBoundException extends FormException { } diff --git a/src/Symfony/Component/Form/Exception/FormException.php b/src/Symfony/Component/Form/Exception/FormException.php index 6916cb6747..c8a5013d3e 100644 --- a/src/Symfony/Component/Form/Exception/FormException.php +++ b/src/Symfony/Component/Form/Exception/FormException.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\Exception; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + class FormException extends \Exception { } \ No newline at end of file diff --git a/src/Symfony/Component/Form/Exception/InvalidConfigurationException.php b/src/Symfony/Component/Form/Exception/InvalidConfigurationException.php index 14fbb97b98..6a897ef39a 100644 --- a/src/Symfony/Component/Form/Exception/InvalidConfigurationException.php +++ b/src/Symfony/Component/Form/Exception/InvalidConfigurationException.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\Exception; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + class InvalidConfigurationException extends FormException { } \ No newline at end of file diff --git a/src/Symfony/Component/Form/Exception/InvalidOptionsException.php b/src/Symfony/Component/Form/Exception/InvalidOptionsException.php index ee95f36740..cb54c03fe2 100644 --- a/src/Symfony/Component/Form/Exception/InvalidOptionsException.php +++ b/src/Symfony/Component/Form/Exception/InvalidOptionsException.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\Exception; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + class InvalidOptionsException extends FormException { private $options; diff --git a/src/Symfony/Component/Form/Exception/InvalidPropertyException.php b/src/Symfony/Component/Form/Exception/InvalidPropertyException.php index 401a42deb5..49aa317e16 100644 --- a/src/Symfony/Component/Form/Exception/InvalidPropertyException.php +++ b/src/Symfony/Component/Form/Exception/InvalidPropertyException.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\Exception; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + class InvalidPropertyException extends FormException { } \ No newline at end of file diff --git a/src/Symfony/Component/Form/Exception/InvalidPropertyPathException.php b/src/Symfony/Component/Form/Exception/InvalidPropertyPathException.php index edd05abebf..a51f7a07e0 100644 --- a/src/Symfony/Component/Form/Exception/InvalidPropertyPathException.php +++ b/src/Symfony/Component/Form/Exception/InvalidPropertyPathException.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\Exception; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + class InvalidPropertyPathException extends FormException { } \ No newline at end of file diff --git a/src/Symfony/Component/Form/Exception/MissingOptionsException.php b/src/Symfony/Component/Form/Exception/MissingOptionsException.php index 557fc263ce..f88c23d4e4 100644 --- a/src/Symfony/Component/Form/Exception/MissingOptionsException.php +++ b/src/Symfony/Component/Form/Exception/MissingOptionsException.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\Exception; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + class MissingOptionsException extends FormException { private $options; diff --git a/src/Symfony/Component/Form/Exception/NotInitializedException.php b/src/Symfony/Component/Form/Exception/NotInitializedException.php index ad21d704bf..c3264672e2 100644 --- a/src/Symfony/Component/Form/Exception/NotInitializedException.php +++ b/src/Symfony/Component/Form/Exception/NotInitializedException.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\Exception; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + class NotInitializedException extends FormException { } diff --git a/src/Symfony/Component/Form/Exception/NotValidException.php b/src/Symfony/Component/Form/Exception/NotValidException.php index 66b98584df..2321b7c972 100644 --- a/src/Symfony/Component/Form/Exception/NotValidException.php +++ b/src/Symfony/Component/Form/Exception/NotValidException.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\Exception; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + class NotValidException extends FormException { } diff --git a/src/Symfony/Component/Form/Exception/PropertyAccessDeniedException.php b/src/Symfony/Component/Form/Exception/PropertyAccessDeniedException.php index 8a48e192d6..9d44eb9af3 100644 --- a/src/Symfony/Component/Form/Exception/PropertyAccessDeniedException.php +++ b/src/Symfony/Component/Form/Exception/PropertyAccessDeniedException.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\Exception; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + class PropertyAccessDeniedException extends FormException { } \ No newline at end of file diff --git a/src/Symfony/Component/Form/Exception/UnexpectedTypeException.php b/src/Symfony/Component/Form/Exception/UnexpectedTypeException.php index d2bc3b1e62..99ed08ae70 100644 --- a/src/Symfony/Component/Form/Exception/UnexpectedTypeException.php +++ b/src/Symfony/Component/Form/Exception/UnexpectedTypeException.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\Exception; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + class UnexpectedTypeException extends FormException { } \ No newline at end of file diff --git a/src/Symfony/Component/Form/Field.php b/src/Symfony/Component/Form/Field.php index 1a4a406be1..fc0aca3b2c 100644 --- a/src/Symfony/Component/Form/Field.php +++ b/src/Symfony/Component/Form/Field.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + use Symfony\Component\Form\Exception\InvalidPropertyException; use Symfony\Component\Form\Exception\PropertyAccessDeniedException; use Symfony\Component\Form\ValueTransformer\ValueTransformerInterface; diff --git a/src/Symfony/Component/Form/FieldGroup.php b/src/Symfony/Component/Form/FieldGroup.php index ba5d9a0df9..97cf3f90f2 100644 --- a/src/Symfony/Component/Form/FieldGroup.php +++ b/src/Symfony/Component/Form/FieldGroup.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + use Symfony\Component\Form\Exception\AlreadyBoundException; use Symfony\Component\Form\Exception\UnexpectedTypeException; use Symfony\Component\Form\Renderer\RendererInterface; @@ -9,19 +18,10 @@ use Symfony\Component\Form\Renderer\TableRenderer; use Symfony\Component\Form\Iterator\RecursiveFieldsWithPropertyPathIterator; use Symfony\Component\I18N\TranslatorInterface; -/* - * This file is part of the symfony package. - * (c) Fabien Potencier - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - /** * FieldGroup represents an array of widgets bind to names and values. * * @author Fabien Potencier - * @version SVN: $Id: FieldGroup.php 247 2010-02-01 09:24:55Z bernhard $ */ class FieldGroup extends Field implements \IteratorAggregate, FieldGroupInterface { diff --git a/src/Symfony/Component/Form/FieldGroupInterface.php b/src/Symfony/Component/Form/FieldGroupInterface.php index 2a8d2219c0..16d332905a 100644 --- a/src/Symfony/Component/Form/FieldGroupInterface.php +++ b/src/Symfony/Component/Form/FieldGroupInterface.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + /** * A field group bundling multiple form fields * diff --git a/src/Symfony/Component/Form/FieldInterface.php b/src/Symfony/Component/Form/FieldInterface.php index 7be1824e43..b076209a07 100644 --- a/src/Symfony/Component/Form/FieldInterface.php +++ b/src/Symfony/Component/Form/FieldInterface.php @@ -2,13 +2,21 @@ namespace Symfony\Component\Form; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + use Symfony\Component\I18N\TranslatorInterface; /** * A form field that can be embedded in a form. * * @author Bernhard Schussek - * @version SVN: $Id: FieldInterface.php 247 2010-02-01 09:24:55Z bernhard $ */ interface FieldInterface extends Localizable, Translatable { @@ -263,4 +271,4 @@ interface FieldInterface extends Localizable, Translatable * @param string $charset */ public function setGenerator(HtmlGeneratorInterface $generator); -} \ No newline at end of file +} diff --git a/src/Symfony/Component/Form/FileField.php b/src/Symfony/Component/Form/FileField.php index 3b4b440c6a..e712f4a14f 100644 --- a/src/Symfony/Component/Form/FileField.php +++ b/src/Symfony/Component/Form/FileField.php @@ -3,11 +3,12 @@ namespace Symfony\Component\Form; /* - * This file is part of the symfony package. + * This file is part of the Symfony framework. + * * (c) Fabien Potencier * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. */ /** diff --git a/src/Symfony/Component/Form/Form.php b/src/Symfony/Component/Form/Form.php index 5e8adae00b..b8809f5779 100644 --- a/src/Symfony/Component/Form/Form.php +++ b/src/Symfony/Component/Form/Form.php @@ -2,17 +2,18 @@ namespace Symfony\Component\Form; -use Symfony\Component\Validator\ValidatorInterface; -use Symfony\Component\I18N\TranslatorInterface; - /* - * This file is part of the symfony package. + * This file is part of the Symfony framework. + * * (c) Fabien Potencier * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. */ +use Symfony\Component\Validator\ValidatorInterface; +use Symfony\Component\I18N\TranslatorInterface; + /** * Form represents a form. * @@ -26,7 +27,6 @@ use Symfony\Component\I18N\TranslatorInterface; * is generated on the fly. * * @author Fabien Potencier - * @version SVN: $Id: Form.php 245 2010-01-31 22:22:39Z flo $ */ class Form extends FieldGroup { diff --git a/src/Symfony/Component/Form/HiddenField.php b/src/Symfony/Component/Form/HiddenField.php index 4f3637e99c..0cff38a16e 100644 --- a/src/Symfony/Component/Form/HiddenField.php +++ b/src/Symfony/Component/Form/HiddenField.php @@ -3,11 +3,12 @@ namespace Symfony\Component\Form; /* - * This file is part of the symfony package. + * This file is part of the Symfony framework. + * * (c) Fabien Potencier * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. */ /** diff --git a/src/Symfony/Component/Form/HybridField.php b/src/Symfony/Component/Form/HybridField.php index 74724eaaeb..616320905c 100644 --- a/src/Symfony/Component/Form/HybridField.php +++ b/src/Symfony/Component/Form/HybridField.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + use Symfony\Component\Form\Exception\FormException; /** diff --git a/src/Symfony/Component/Form/InputField.php b/src/Symfony/Component/Form/InputField.php index 143d28d581..b98e73b68a 100644 --- a/src/Symfony/Component/Form/InputField.php +++ b/src/Symfony/Component/Form/InputField.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + /** * Base class for all low-level fields represented by input tags * diff --git a/src/Symfony/Component/Form/IntegerField.php b/src/Symfony/Component/Form/IntegerField.php index 98616f6e74..34b886d826 100644 --- a/src/Symfony/Component/Form/IntegerField.php +++ b/src/Symfony/Component/Form/IntegerField.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + use Symfony\Component\Form\ValueTransformer\NumberToLocalizedStringTransformer; /* diff --git a/src/Symfony/Component/Form/Iterator/RecursiveFieldsWithPropertyPathIterator.php b/src/Symfony/Component/Form/Iterator/RecursiveFieldsWithPropertyPathIterator.php index 5e6ed47f36..b1ecf76ba4 100644 --- a/src/Symfony/Component/Form/Iterator/RecursiveFieldsWithPropertyPathIterator.php +++ b/src/Symfony/Component/Form/Iterator/RecursiveFieldsWithPropertyPathIterator.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\Iterator; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + use Symfony\Component\Form\FieldGroupInterface; class RecursiveFieldsWithPropertyPathIterator extends \IteratorIterator implements \RecursiveIterator diff --git a/src/Symfony/Component/Form/Localizable.php b/src/Symfony/Component/Form/Localizable.php index e81c0ecf49..5aa102bbdd 100644 --- a/src/Symfony/Component/Form/Localizable.php +++ b/src/Symfony/Component/Form/Localizable.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + /** * Marks classes that you can inject a locale into. * diff --git a/src/Symfony/Component/Form/NumberField.php b/src/Symfony/Component/Form/NumberField.php index 4f864135ad..46169bf339 100644 --- a/src/Symfony/Component/Form/NumberField.php +++ b/src/Symfony/Component/Form/NumberField.php @@ -2,16 +2,17 @@ namespace Symfony\Component\Form; -use Symfony\Component\Form\ValueTransformer\NumberToLocalizedStringTransformer; - /* - * This file is part of the symfony package. + * This file is part of the Symfony framework. + * * (c) Fabien Potencier * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. */ +use Symfony\Component\Form\ValueTransformer\NumberToLocalizedStringTransformer; + /** * A localized field for entering numbers. * @@ -45,4 +46,4 @@ class NumberField extends InputField 'type' => 'text', ), $attributes)); } -} \ No newline at end of file +} diff --git a/src/Symfony/Component/Form/PasswordField.php b/src/Symfony/Component/Form/PasswordField.php index a0d28c9b79..01817deabb 100644 --- a/src/Symfony/Component/Form/PasswordField.php +++ b/src/Symfony/Component/Form/PasswordField.php @@ -3,11 +3,12 @@ namespace Symfony\Component\Form; /* - * This file is part of the symfony package. + * This file is part of the Symfony framework. + * * (c) Fabien Potencier * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. */ /** diff --git a/src/Symfony/Component/Form/PercentField.php b/src/Symfony/Component/Form/PercentField.php index 43d5f148ae..88075f8132 100644 --- a/src/Symfony/Component/Form/PercentField.php +++ b/src/Symfony/Component/Form/PercentField.php @@ -2,16 +2,17 @@ namespace Symfony\Component\Form; -use Symfony\Component\Form\ValueTransformer\PercentToLocalizedStringTransformer; - /* - * This file is part of the symfony package. + * This file is part of the Symfony framework. + * * (c) Fabien Potencier * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. */ +use Symfony\Component\Form\ValueTransformer\PercentToLocalizedStringTransformer; + /** * A localized field for entering percentage values. * @@ -43,4 +44,4 @@ class PercentField extends NumberField { return parent::render($attributes).' %'; } -} \ No newline at end of file +} diff --git a/src/Symfony/Component/Form/PropertyPath.php b/src/Symfony/Component/Form/PropertyPath.php index fcbbd12978..e0039541d6 100644 --- a/src/Symfony/Component/Form/PropertyPath.php +++ b/src/Symfony/Component/Form/PropertyPath.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + use Symfony\Component\Form\Exception\InvalidPropertyPathException; /** diff --git a/src/Symfony/Component/Form/RadioField.php b/src/Symfony/Component/Form/RadioField.php index 8b8eb4afc7..56c5617f8b 100644 --- a/src/Symfony/Component/Form/RadioField.php +++ b/src/Symfony/Component/Form/RadioField.php @@ -3,11 +3,12 @@ namespace Symfony\Component\Form; /* - * This file is part of the symfony package. + * This file is part of the Symfony framework. + * * (c) Fabien Potencier * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. */ /** @@ -27,4 +28,4 @@ class RadioField extends ToggleField 'name' => $this->getParent() ? $this->getParent()->getName() : $this->getName(), ), $attributes)); } -} \ No newline at end of file +} diff --git a/src/Symfony/Component/Form/RepeatedField.php b/src/Symfony/Component/Form/RepeatedField.php index ad6e0177bb..63d2207963 100644 --- a/src/Symfony/Component/Form/RepeatedField.php +++ b/src/Symfony/Component/Form/RepeatedField.php @@ -3,11 +3,12 @@ namespace Symfony\Component\Form; /* - * This file is part of the symfony package. + * This file is part of the Symfony framework. + * * (c) Fabien Potencier * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. */ /** diff --git a/src/Symfony/Component/Form/TextField.php b/src/Symfony/Component/Form/TextField.php index d1d7aca7e1..973be1e24d 100644 --- a/src/Symfony/Component/Form/TextField.php +++ b/src/Symfony/Component/Form/TextField.php @@ -3,11 +3,12 @@ namespace Symfony\Component\Form; /* - * This file is part of the symfony package. + * This file is part of the Symfony framework. + * * (c) Fabien Potencier * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. */ /** @@ -37,4 +38,4 @@ class TextField extends InputField 'maxlength' => $this->getOption('max_length'), ), $attributes)); } -} \ No newline at end of file +} diff --git a/src/Symfony/Component/Form/TextareaField.php b/src/Symfony/Component/Form/TextareaField.php index 832f628db1..e553da54a9 100644 --- a/src/Symfony/Component/Form/TextareaField.php +++ b/src/Symfony/Component/Form/TextareaField.php @@ -3,11 +3,12 @@ namespace Symfony\Component\Form; /* - * This file is part of the symfony package. + * This file is part of the Symfony framework. + * * (c) Fabien Potencier * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. */ /** diff --git a/src/Symfony/Component/Form/TimeField.php b/src/Symfony/Component/Form/TimeField.php index 058e15d358..2a2bf56cdb 100644 --- a/src/Symfony/Component/Form/TimeField.php +++ b/src/Symfony/Component/Form/TimeField.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + use Symfony\Component\Form\ValueTransformer\ReversedTransformer; use Symfony\Component\Form\ValueTransformer\DateTimeToArrayTransformer; use Symfony\Component\Form\ValueTransformer\StringToDateTimeTransformer; diff --git a/src/Symfony/Component/Form/TimezoneField.php b/src/Symfony/Component/Form/TimezoneField.php index 8e6afa5801..5100fda10b 100644 --- a/src/Symfony/Component/Form/TimezoneField.php +++ b/src/Symfony/Component/Form/TimezoneField.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + class TimezoneField extends ChoiceField { /** diff --git a/src/Symfony/Component/Form/ToggleField.php b/src/Symfony/Component/Form/ToggleField.php index dea88bdf57..4c7064bd96 100644 --- a/src/Symfony/Component/Form/ToggleField.php +++ b/src/Symfony/Component/Form/ToggleField.php @@ -2,16 +2,17 @@ namespace Symfony\Component\Form; -use Symfony\Component\Form\ValueTransformer\BooleanToStringTransformer; - /* - * This file is part of the symfony package. + * This file is part of the Symfony framework. + * * (c) Fabien Potencier * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. */ +use Symfony\Component\Form\ValueTransformer\BooleanToStringTransformer; + /** * An input field for selecting boolean values. * @@ -53,4 +54,4 @@ abstract class ToggleField extends InputField return $html; } -} \ No newline at end of file +} diff --git a/src/Symfony/Component/Form/ValueTransformer/BaseValueTransformer.php b/src/Symfony/Component/Form/ValueTransformer/BaseValueTransformer.php index 88e4d38413..30c4c2c4b6 100644 --- a/src/Symfony/Component/Form/ValueTransformer/BaseValueTransformer.php +++ b/src/Symfony/Component/Form/ValueTransformer/BaseValueTransformer.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\ValueTransformer; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + use Symfony\Component\Form\Configurable; /** diff --git a/src/Symfony/Component/Form/ValueTransformer/BooleanToStringTransformer.php b/src/Symfony/Component/Form/ValueTransformer/BooleanToStringTransformer.php index f038af1f40..a06f44c5bb 100644 --- a/src/Symfony/Component/Form/ValueTransformer/BooleanToStringTransformer.php +++ b/src/Symfony/Component/Form/ValueTransformer/BooleanToStringTransformer.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\ValueTransformer; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + /** * Transforms between a boolean and a string. * diff --git a/src/Symfony/Component/Form/ValueTransformer/DateTimeToArrayTransformer.php b/src/Symfony/Component/Form/ValueTransformer/DateTimeToArrayTransformer.php index 237b41111f..8a0e940032 100644 --- a/src/Symfony/Component/Form/ValueTransformer/DateTimeToArrayTransformer.php +++ b/src/Symfony/Component/Form/ValueTransformer/DateTimeToArrayTransformer.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\ValueTransformer; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + use \Symfony\Component\Form\ValueTransformer\ValueTransformerException; /** diff --git a/src/Symfony/Component/Form/ValueTransformer/DateTimeToLocalizedStringTransformer.php b/src/Symfony/Component/Form/ValueTransformer/DateTimeToLocalizedStringTransformer.php index eaa4477cf9..4d5c5d0c77 100644 --- a/src/Symfony/Component/Form/ValueTransformer/DateTimeToLocalizedStringTransformer.php +++ b/src/Symfony/Component/Form/ValueTransformer/DateTimeToLocalizedStringTransformer.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\ValueTransformer; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + use \Symfony\Component\Form\ValueTransformer\ValueTransformerException; /** diff --git a/src/Symfony/Component/Form/ValueTransformer/MoneyToLocalizedStringTransformer.php b/src/Symfony/Component/Form/ValueTransformer/MoneyToLocalizedStringTransformer.php index 7a8d68eac1..b8831920bc 100644 --- a/src/Symfony/Component/Form/ValueTransformer/MoneyToLocalizedStringTransformer.php +++ b/src/Symfony/Component/Form/ValueTransformer/MoneyToLocalizedStringTransformer.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\ValueTransformer; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + use \Symfony\Component\Form\ValueTransformer\ValueTransformerException; /** diff --git a/src/Symfony/Component/Form/ValueTransformer/NumberToLocalizedStringTransformer.php b/src/Symfony/Component/Form/ValueTransformer/NumberToLocalizedStringTransformer.php index 0ab01a5fad..07e2712fed 100644 --- a/src/Symfony/Component/Form/ValueTransformer/NumberToLocalizedStringTransformer.php +++ b/src/Symfony/Component/Form/ValueTransformer/NumberToLocalizedStringTransformer.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\ValueTransformer; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + use \Symfony\Component\Form\ValueTransformer\ValueTransformerException; /** diff --git a/src/Symfony/Component/Form/ValueTransformer/PercentToLocalizedStringTransformer.php b/src/Symfony/Component/Form/ValueTransformer/PercentToLocalizedStringTransformer.php index 5735855d0d..0c4d7a830b 100644 --- a/src/Symfony/Component/Form/ValueTransformer/PercentToLocalizedStringTransformer.php +++ b/src/Symfony/Component/Form/ValueTransformer/PercentToLocalizedStringTransformer.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\ValueTransformer; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + use \Symfony\Component\Form\ValueTransformer\ValueTransformerException; /** diff --git a/src/Symfony/Component/Form/ValueTransformer/ReversedTransformer.php b/src/Symfony/Component/Form/ValueTransformer/ReversedTransformer.php index 6b3542e20e..831880ad99 100644 --- a/src/Symfony/Component/Form/ValueTransformer/ReversedTransformer.php +++ b/src/Symfony/Component/Form/ValueTransformer/ReversedTransformer.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\ValueTransformer; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + /** * Reverses a transformer * diff --git a/src/Symfony/Component/Form/ValueTransformer/StringToDateTimeTransformer.php b/src/Symfony/Component/Form/ValueTransformer/StringToDateTimeTransformer.php index 61410f6be9..8b4fc83797 100644 --- a/src/Symfony/Component/Form/ValueTransformer/StringToDateTimeTransformer.php +++ b/src/Symfony/Component/Form/ValueTransformer/StringToDateTimeTransformer.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\ValueTransformer; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + use \Symfony\Component\Form\ValueTransformer\ValueTransformerException; /** diff --git a/src/Symfony/Component/Form/ValueTransformer/TimestampToDateTimeTransformer.php b/src/Symfony/Component/Form/ValueTransformer/TimestampToDateTimeTransformer.php index 63c010928a..fcd760e64b 100644 --- a/src/Symfony/Component/Form/ValueTransformer/TimestampToDateTimeTransformer.php +++ b/src/Symfony/Component/Form/ValueTransformer/TimestampToDateTimeTransformer.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\ValueTransformer; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + use \Symfony\Component\Form\ValueTransformer\ValueTransformerException; /** diff --git a/src/Symfony/Component/Form/ValueTransformer/TransformationFailedException.php b/src/Symfony/Component/Form/ValueTransformer/TransformationFailedException.php index 7564f5cea6..63b4fdb2e1 100644 --- a/src/Symfony/Component/Form/ValueTransformer/TransformationFailedException.php +++ b/src/Symfony/Component/Form/ValueTransformer/TransformationFailedException.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\ValueTransformer; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + /** * Indicates a value transformation error. * diff --git a/src/Symfony/Component/Form/ValueTransformer/ValueTransformerChain.php b/src/Symfony/Component/Form/ValueTransformer/ValueTransformerChain.php index de21b1024d..fd6f8dad54 100644 --- a/src/Symfony/Component/Form/ValueTransformer/ValueTransformerChain.php +++ b/src/Symfony/Component/Form/ValueTransformer/ValueTransformerChain.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\ValueTransformer; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + /** * Passes a value through multiple value transformers * diff --git a/src/Symfony/Component/Form/ValueTransformer/ValueTransformerInterface.php b/src/Symfony/Component/Form/ValueTransformer/ValueTransformerInterface.php index 0ae3a3647e..56f8af0019 100644 --- a/src/Symfony/Component/Form/ValueTransformer/ValueTransformerInterface.php +++ b/src/Symfony/Component/Form/ValueTransformer/ValueTransformerInterface.php @@ -2,6 +2,15 @@ namespace Symfony\Component\Form\ValueTransformer; +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + use Symfony\Component\Form\Localizable; /**