Prechádzať zdrojové kódy

[Form] Moved PropertyPath, PropertyPathIterator and VirtualFormAwareIterator to subnamespace Util

Bernhard Schussek 14 rokov pred
rodič
commit
edfae73cd4

+ 1 - 1
src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php

@@ -11,7 +11,7 @@
 
 namespace Symfony\Bridge\Doctrine\Form\ChoiceList;
 
-use Symfony\Component\Form\PropertyPath;
+use Symfony\Component\Form\Util\PropertyPath;
 use Symfony\Component\Form\Exception\FormException;
 use Symfony\Component\Form\Exception\UnexpectedTypeException;
 use Symfony\Component\Form\ChoiceList\DefaultChoiceList;

+ 1 - 1
src/Symfony/Component/Form/DataMapper/PropertyPathMapper.php

@@ -12,7 +12,7 @@
 namespace Symfony\Component\Form\DataMapper;
 
 use Symfony\Component\Form\FormInterface;
-use Symfony\Component\Form\VirtualFormAwareIterator;
+use Symfony\Component\Form\Util\VirtualFormAwareIterator;
 use Symfony\Component\Form\Exception\FormException;
 
 class PropertyPathMapper implements DataMapperInterface

+ 1 - 1
src/Symfony/Component/Form/Type/FieldType.php

@@ -11,7 +11,7 @@
 
 namespace Symfony\Component\Form\Type;
 
-use Symfony\Component\Form\PropertyPath;
+use Symfony\Component\Form\Util\PropertyPath;
 use Symfony\Component\Form\FormBuilder;
 use Symfony\Component\Form\FormInterface;
 use Symfony\Component\Form\Renderer\FormRendererInterface;

+ 1 - 1
src/Symfony/Component/Form/PropertyPath.php

@@ -9,7 +9,7 @@
  * file that was distributed with this source code.
  */
 
-namespace Symfony\Component\Form;
+namespace Symfony\Component\Form\Util;
 
 use Symfony\Component\Form\Exception\InvalidPropertyPathException;
 use Symfony\Component\Form\Exception\InvalidPropertyException;

+ 1 - 1
src/Symfony/Component/Form/PropertyPathIterator.php

@@ -9,7 +9,7 @@
  * file that was distributed with this source code.
  */
 
-namespace Symfony\Component\Form;
+namespace Symfony\Component\Form\Util;
 
 /**
  * Traverses a property path and provides additional methods to find out

+ 1 - 1
src/Symfony/Component/Form/VirtualFormAwareIterator.php

@@ -9,7 +9,7 @@
  * file that was distributed with this source code.
  */
 
-namespace Symfony\Component\Form;
+namespace Symfony\Component\Form\Util;
 
 /**
  * Iterator that traverses fields of a field group

+ 1 - 1
src/Symfony/Component/Form/Validator/DelegatingValidator.php

@@ -13,7 +13,7 @@ namespace Symfony\Component\Form\Validator;
 
 use Symfony\Component\Form\FormInterface;
 use Symfony\Component\Form\FormError;
-use Symfony\Component\Form\VirtualFormAwareIterator;
+use Symfony\Component\Form\Util\VirtualFormAwareIterator;
 use Symfony\Component\Form\Exception\FormException;
 use Symfony\Component\Validator\ValidatorInterface;
 use Symfony\Component\Validator\ExecutionContext;

+ 2 - 2
tests/Symfony/Tests/Component/Form/DataMapper/PropertyPathMapperTest.php

@@ -12,7 +12,7 @@
 namespace Symfony\Tests\Component\Form\DataMapper;
 
 use Symfony\Component\Form\FormBuilder;
-use Symfony\Component\Form\PropertyPath;
+use Symfony\Component\Form\Util\PropertyPath;
 use Symfony\Component\Form\DataMapper\PropertyPathMapper;
 
 class PropertyPathMapperTest extends \PHPUnit_Framework_TestCase
@@ -24,7 +24,7 @@ class PropertyPathMapperTest extends \PHPUnit_Framework_TestCase
     protected function setUp()
     {
         $this->mapper = new PropertyPathMapper();
-        $this->propertyPath = $this->getMockBuilder('Symfony\Component\Form\PropertyPath')
+        $this->propertyPath = $this->getMockBuilder('Symfony\Component\Form\Util\PropertyPath')
             ->disableOriginalConstructor()
             ->getMock();
     }

+ 1 - 1
tests/Symfony/Tests/Component/Form/PropertyPathTest.php

@@ -14,7 +14,7 @@ namespace Symfony\Tests\Component\Form;
 require_once __DIR__ . '/Fixtures/Author.php';
 require_once __DIR__ . '/Fixtures/Magician.php';
 
-use Symfony\Component\Form\PropertyPath;
+use Symfony\Component\Form\Util\PropertyPath;
 use Symfony\Tests\Component\Form\Fixtures\Author;
 use Symfony\Tests\Component\Form\Fixtures\Magician;
 

+ 1 - 1
tests/Symfony/Tests/Component/Form/Type/FieldTypeTest.php

@@ -17,7 +17,7 @@ require_once __DIR__ . '/../Fixtures/FixedDataTransformer.php';
 require_once __DIR__ . '/../Fixtures/FixedFilterListener.php';
 
 use Symfony\Component\Form\DataTransformer\DataTransformerInterface;
-use Symfony\Component\Form\PropertyPath;
+use Symfony\Component\Form\Util\PropertyPath;
 use Symfony\Component\Form\FormError;
 use Symfony\Component\Form\Form;
 use Symfony\Component\Form\DataTransformer\TransformationFailedException;

+ 1 - 1
tests/Symfony/Tests/Component/Form/Type/FormTypeTest.php

@@ -20,7 +20,7 @@ use Symfony\Component\Form\Field;
 use Symfony\Component\Form\FormError;
 use Symfony\Component\Form\DataError;
 use Symfony\Component\Form\HiddenField;
-use Symfony\Component\Form\PropertyPath;
+use Symfony\Component\Form\Util\PropertyPath;
 use Symfony\Component\Form\DataTransformer\CallbackTransformer;
 use Symfony\Component\HttpFoundation\Request;
 use Symfony\Component\HttpFoundation\File\UploadedFile;

+ 1 - 1
tests/Symfony/Tests/Component/Form/Validator/DelegatingValidatorTest.php

@@ -13,7 +13,7 @@ namespace Symfony\Tests\Component\Form\Validator;
 
 use Symfony\Component\Form\FormBuilder;
 use Symfony\Component\Form\FormError;
-use Symfony\Component\Form\PropertyPath;
+use Symfony\Component\Form\Util\PropertyPath;
 use Symfony\Component\Form\Validator\DelegatingValidator;
 use Symfony\Component\Form\DataTransformer\TransformationFailedException;
 use Symfony\Component\Validator\ConstraintViolation;