浏览代码

[Form] fixed license and phpdoc

Fabien Potencier 15 年之前
父节点
当前提交
4deb82f842
共有 56 个文件被更改,包括 453 次插入81 次删除
  1. 5 4
      src/Symfony/Component/Form/BirthdayField.php
  2. 4 3
      src/Symfony/Component/Form/CheckboxField.php
  3. 9 0
      src/Symfony/Component/Form/ChoiceField.php
  4. 7 7
      src/Symfony/Component/Form/CollectionField.php
  5. 9 0
      src/Symfony/Component/Form/Configurable.php
  6. 9 0
      src/Symfony/Component/Form/Configurator/ConfiguratorInterface.php
  7. 9 0
      src/Symfony/Component/Form/Configurator/ValidatorConfigurator.php
  8. 9 8
      src/Symfony/Component/Form/DateField.php
  9. 9 0
      src/Symfony/Component/Form/DateTimeField.php
  10. 9 0
      src/Symfony/Component/Form/Exception/AlreadyBoundException.php
  11. 9 0
      src/Symfony/Component/Form/Exception/FormException.php
  12. 9 0
      src/Symfony/Component/Form/Exception/InvalidConfigurationException.php
  13. 9 0
      src/Symfony/Component/Form/Exception/InvalidOptionsException.php
  14. 9 0
      src/Symfony/Component/Form/Exception/InvalidPropertyException.php
  15. 9 0
      src/Symfony/Component/Form/Exception/InvalidPropertyPathException.php
  16. 9 0
      src/Symfony/Component/Form/Exception/MissingOptionsException.php
  17. 9 0
      src/Symfony/Component/Form/Exception/NotInitializedException.php
  18. 9 0
      src/Symfony/Component/Form/Exception/NotValidException.php
  19. 9 0
      src/Symfony/Component/Form/Exception/PropertyAccessDeniedException.php
  20. 9 0
      src/Symfony/Component/Form/Exception/UnexpectedTypeException.php
  21. 9 0
      src/Symfony/Component/Form/Field.php
  22. 9 9
      src/Symfony/Component/Form/FieldGroup.php
  23. 9 0
      src/Symfony/Component/Form/FieldGroupInterface.php
  24. 10 2
      src/Symfony/Component/Form/FieldInterface.php
  25. 4 3
      src/Symfony/Component/Form/FileField.php
  26. 7 7
      src/Symfony/Component/Form/Form.php
  27. 4 3
      src/Symfony/Component/Form/HiddenField.php
  28. 9 0
      src/Symfony/Component/Form/HybridField.php
  29. 9 0
      src/Symfony/Component/Form/InputField.php
  30. 9 0
      src/Symfony/Component/Form/IntegerField.php
  31. 9 0
      src/Symfony/Component/Form/Iterator/RecursiveFieldsWithPropertyPathIterator.php
  32. 9 0
      src/Symfony/Component/Form/Localizable.php
  33. 7 6
      src/Symfony/Component/Form/NumberField.php
  34. 4 3
      src/Symfony/Component/Form/PasswordField.php
  35. 7 6
      src/Symfony/Component/Form/PercentField.php
  36. 9 0
      src/Symfony/Component/Form/PropertyPath.php
  37. 5 4
      src/Symfony/Component/Form/RadioField.php
  38. 4 3
      src/Symfony/Component/Form/RepeatedField.php
  39. 5 4
      src/Symfony/Component/Form/TextField.php
  40. 4 3
      src/Symfony/Component/Form/TextareaField.php
  41. 9 0
      src/Symfony/Component/Form/TimeField.php
  42. 9 0
      src/Symfony/Component/Form/TimezoneField.php
  43. 7 6
      src/Symfony/Component/Form/ToggleField.php
  44. 9 0
      src/Symfony/Component/Form/ValueTransformer/BaseValueTransformer.php
  45. 9 0
      src/Symfony/Component/Form/ValueTransformer/BooleanToStringTransformer.php
  46. 9 0
      src/Symfony/Component/Form/ValueTransformer/DateTimeToArrayTransformer.php
  47. 9 0
      src/Symfony/Component/Form/ValueTransformer/DateTimeToLocalizedStringTransformer.php
  48. 9 0
      src/Symfony/Component/Form/ValueTransformer/MoneyToLocalizedStringTransformer.php
  49. 9 0
      src/Symfony/Component/Form/ValueTransformer/NumberToLocalizedStringTransformer.php
  50. 9 0
      src/Symfony/Component/Form/ValueTransformer/PercentToLocalizedStringTransformer.php
  51. 9 0
      src/Symfony/Component/Form/ValueTransformer/ReversedTransformer.php
  52. 9 0
      src/Symfony/Component/Form/ValueTransformer/StringToDateTimeTransformer.php
  53. 9 0
      src/Symfony/Component/Form/ValueTransformer/TimestampToDateTimeTransformer.php
  54. 9 0
      src/Symfony/Component/Form/ValueTransformer/TransformationFailedException.php
  55. 9 0
      src/Symfony/Component/Form/ValueTransformer/ValueTransformerChain.php
  56. 9 0
      src/Symfony/Component/Form/ValueTransformer/ValueTransformerInterface.php

+ 5 - 4
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 <fabien.potencier@symfony-project.com>
  *
- * 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();
     }
-}
+}

+ 4 - 3
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 <fabien.potencier@symfony-project.com>
  *
- * 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.
  */
 
 /**

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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;
 
 /**

+ 7 - 7
src/Symfony/Component/Form/CollectionField.php

@@ -2,20 +2,20 @@
 
 namespace Symfony\Component\Form;
 
-use Symfony\Component\Form\FieldInterface;
-use Symfony\Component\Form\Exception\UnexpectedTypeException;
-
 /*
- * This file is part of the symfony package.
+ * This file is part of the Symfony framework.
+ *
  * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  *
- * 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\FieldInterface;
+use Symfony\Component\Form\Exception\UnexpectedTypeException;
+
 /**
  * @author     Bernhard Schussek <bernhard.schussek@symfony-project.com>
- * @version    SVN: $Id: FieldGroup.php 79 2009-12-08 12:53:15Z bernhard $
  */
 class CollectionField extends FieldGroup
 {

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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;
 

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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);

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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;

+ 9 - 8
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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 <fabien.potencier@symfony-project.com>
- *
- * 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';

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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;

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * This source file is subject to the MIT license that is bundled
+ * with this source code in the file LICENSE.
+ */
+
 class AlreadyBoundException extends FormException
 {
 }

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * This source file is subject to the MIT license that is bundled
+ * with this source code in the file LICENSE.
+ */
+
 class FormException extends \Exception
 {
 }

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * This source file is subject to the MIT license that is bundled
+ * with this source code in the file LICENSE.
+ */
+
 class InvalidConfigurationException extends FormException
 {
 }

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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;

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * This source file is subject to the MIT license that is bundled
+ * with this source code in the file LICENSE.
+ */
+
 class InvalidPropertyException extends FormException
 {
 }

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * This source file is subject to the MIT license that is bundled
+ * with this source code in the file LICENSE.
+ */
+
 class InvalidPropertyPathException extends FormException
 {
 }

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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;

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * This source file is subject to the MIT license that is bundled
+ * with this source code in the file LICENSE.
+ */
+
 class NotInitializedException extends FormException
 {
 }

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * This source file is subject to the MIT license that is bundled
+ * with this source code in the file LICENSE.
+ */
+
 class NotValidException extends FormException
 {
 }

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * This source file is subject to the MIT license that is bundled
+ * with this source code in the file LICENSE.
+ */
+
 class PropertyAccessDeniedException extends FormException
 {
 }

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * This source file is subject to the MIT license that is bundled
+ * with this source code in the file LICENSE.
+ */
+
 class UnexpectedTypeException extends FormException
 {
 }

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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;

+ 9 - 9
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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 <fabien.potencier@symfony-project.com>
- *
- * 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 <fabien.potencier@symfony-project.com>
- * @version    SVN: $Id: FieldGroup.php 247 2010-02-01 09:24:55Z bernhard $
  */
 class FieldGroup extends Field implements \IteratorAggregate, FieldGroupInterface
 {

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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
  *

+ 10 - 2
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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 <bernhard.schussek@symfony-project.com>
- * @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);
-}
+}

+ 4 - 3
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 <fabien.potencier@symfony-project.com>
  *
- * 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.
  */
 
 /**

+ 7 - 7
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 <fabien.potencier@symfony-project.com>
  *
- * 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 <fabien.potencier@symfony-project.com>
- * @version    SVN: $Id: Form.php 245 2010-01-31 22:22:39Z flo $
  */
 class Form extends FieldGroup
 {

+ 4 - 3
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 <fabien.potencier@symfony-project.com>
  *
- * 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.
  */
 
 /**

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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;
 
 /**

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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
  *

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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;
 
 /*

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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.
  *

+ 7 - 6
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 <fabien.potencier@symfony-project.com>
  *
- * 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));
     }
-}
+}

+ 4 - 3
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 <fabien.potencier@symfony-project.com>
  *
- * 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.
  */
 
 /**

+ 7 - 6
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 <fabien.potencier@symfony-project.com>
  *
- * 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).' %';
     }
-}
+}

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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;
 
 /**

+ 5 - 4
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 <fabien.potencier@symfony-project.com>
  *
- * 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));
     }
-}
+}

+ 4 - 3
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 <fabien.potencier@symfony-project.com>
  *
- * 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.
  */
 
 /**

+ 5 - 4
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 <fabien.potencier@symfony-project.com>
  *
- * 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));
     }
-}
+}

+ 4 - 3
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 <fabien.potencier@symfony-project.com>
  *
- * 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.
  */
 
 /**

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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;

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * This source file is subject to the MIT license that is bundled
+ * with this source code in the file LICENSE.
+ */
+
 class TimezoneField extends ChoiceField
 {
     /**

+ 7 - 6
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 <fabien.potencier@symfony-project.com>
  *
- * 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;
     }
-}
+}

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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;
 
 /**

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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.
  *

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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;
 
 /**

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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;
 
 /**

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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;
 
 /**

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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;
 
 /**

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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;
 
 /**

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * This source file is subject to the MIT license that is bundled
+ * with this source code in the file LICENSE.
+ */
+
 /**
  * Reverses a transformer
  *

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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;
 
 /**

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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;
 
 /**

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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.
  *

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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
  *

+ 9 - 0
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 <fabien.potencier@symfony-project.com>
+ *
+ * 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;
 
 /**