Skip to content

Commit

Permalink
Merge branch '3.4' into 4.0
Browse files Browse the repository at this point in the history
* 3.4:
  Alpha-ordering for "use" statements
  • Loading branch information
nicolas-grekas committed Jul 26, 2018
2 parents e8fd5dc + 138ab36 commit c58c79a
Show file tree
Hide file tree
Showing 39 changed files with 58 additions and 58 deletions.
2 changes: 1 addition & 1 deletion DataCollector/DoctrineDataCollector.php
Expand Up @@ -14,9 +14,9 @@
use Doctrine\Common\Persistence\ManagerRegistry;
use Doctrine\DBAL\Logging\DebugStack;
use Doctrine\DBAL\Types\Type;
use Symfony\Component\HttpKernel\DataCollector\DataCollector;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\DataCollector\DataCollector;

/**
* DoctrineDataCollector.
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/AbstractDoctrineExtension.php
Expand Up @@ -11,11 +11,11 @@

namespace Symfony\Bridge\Doctrine\DependencyInjection;

use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Alias;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;

/**
* This abstract classes groups common code that Doctrine Object Manager extensions (ORM, MongoDB, CouchDB) need.
Expand Down
Expand Up @@ -11,8 +11,8 @@

namespace Symfony\Bridge\Doctrine\DependencyInjection\CompilerPass;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;

/**
* Registers additional validators.
Expand Down
4 changes: 2 additions & 2 deletions DependencyInjection/CompilerPass/RegisterMappingsPass.php
Expand Up @@ -11,11 +11,11 @@

namespace Symfony\Bridge\Doctrine\DependencyInjection\CompilerPass;

use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
use Symfony\Component\DependencyInjection\Reference;

/**
* Base class for the doctrine bundles to provide a compiler pass class that
Expand Down
Expand Up @@ -11,8 +11,8 @@

namespace Symfony\Bridge\Doctrine\DependencyInjection\Security\UserProvider;

use Symfony\Component\Config\Definition\Builder\NodeDefinition;
use Symfony\Bundle\SecurityBundle\DependencyInjection\Security\UserProvider\UserProviderFactoryInterface;
use Symfony\Component\Config\Definition\Builder\NodeDefinition;
use Symfony\Component\DependencyInjection\ChildDefinition;
use Symfony\Component\DependencyInjection\ContainerBuilder;

Expand Down
2 changes: 1 addition & 1 deletion Form/ChoiceList/ORMQueryBuilderLoader.php
Expand Up @@ -11,8 +11,8 @@

namespace Symfony\Bridge\Doctrine\Form\ChoiceList;

use Doctrine\ORM\QueryBuilder;
use Doctrine\DBAL\Connection;
use Doctrine\ORM\QueryBuilder;

/**
* Loads entities using a {@link QueryBuilder} instance.
Expand Down
6 changes: 3 additions & 3 deletions Form/DataTransformer/CollectionToArrayTransformer.php
Expand Up @@ -11,10 +11,10 @@

namespace Symfony\Bridge\Doctrine\Form\DataTransformer;

use Symfony\Component\Form\Exception\TransformationFailedException;
use Symfony\Component\Form\DataTransformerInterface;
use Doctrine\Common\Collections\Collection;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Symfony\Component\Form\DataTransformerInterface;
use Symfony\Component\Form\Exception\TransformationFailedException;

/**
* @author Bernhard Schussek <bschussek@gmail.com>
Expand Down
2 changes: 1 addition & 1 deletion Form/DoctrineOrmTypeGuesser.php
Expand Up @@ -13,14 +13,14 @@

use Doctrine\Common\Persistence\ManagerRegistry;
use Doctrine\Common\Persistence\Mapping\MappingException;
use Doctrine\Common\Util\ClassUtils;
use Doctrine\DBAL\Types\Type;
use Doctrine\ORM\Mapping\ClassMetadataInfo;
use Doctrine\ORM\Mapping\MappingException as LegacyMappingException;
use Symfony\Component\Form\FormTypeGuesserInterface;
use Symfony\Component\Form\Guess\Guess;
use Symfony\Component\Form\Guess\TypeGuess;
use Symfony\Component\Form\Guess\ValueGuess;
use Doctrine\Common\Util\ClassUtils;

class DoctrineOrmTypeGuesser implements FormTypeGuesserInterface
{
Expand Down
4 changes: 2 additions & 2 deletions Form/EventListener/MergeDoctrineCollectionListener.php
Expand Up @@ -12,9 +12,9 @@
namespace Symfony\Bridge\Doctrine\Form\EventListener;

use Doctrine\Common\Collections\Collection;
use Symfony\Component\Form\FormEvents;
use Symfony\Component\Form\FormEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Form\FormEvent;
use Symfony\Component\Form\FormEvents;

/**
* Merge changes from the request to a Doctrine\Common\Collections\Collection instance.
Expand Down
2 changes: 1 addition & 1 deletion Logger/DbalLogger.php
Expand Up @@ -11,9 +11,9 @@

namespace Symfony\Bridge\Doctrine\Logger;

use Doctrine\DBAL\Logging\SQLLogger;
use Psr\Log\LoggerInterface;
use Symfony\Component\Stopwatch\Stopwatch;
use Doctrine\DBAL\Logging\SQLLogger;

/**
* @author Fabien Potencier <fabien@symfony.com>
Expand Down
2 changes: 1 addition & 1 deletion ManagerRegistry.php
Expand Up @@ -11,9 +11,9 @@

namespace Symfony\Bridge\Doctrine;

use Doctrine\Common\Persistence\AbstractManagerRegistry;
use ProxyManager\Proxy\LazyLoadingInterface;
use Symfony\Component\DependencyInjection\Container;
use Doctrine\Common\Persistence\AbstractManagerRegistry;

/**
* References Doctrine connections and entity/document managers.
Expand Down
8 changes: 4 additions & 4 deletions Security/RememberMe/DoctrineTokenProvider.php
Expand Up @@ -11,12 +11,12 @@

namespace Symfony\Bridge\Doctrine\Security\RememberMe;

use Symfony\Component\Security\Core\Authentication\RememberMe\TokenProviderInterface;
use Symfony\Component\Security\Core\Authentication\RememberMe\PersistentTokenInterface;
use Symfony\Component\Security\Core\Authentication\RememberMe\PersistentToken;
use Symfony\Component\Security\Core\Exception\TokenNotFoundException;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Types\Type as DoctrineType;
use Symfony\Component\Security\Core\Authentication\RememberMe\PersistentToken;
use Symfony\Component\Security\Core\Authentication\RememberMe\PersistentTokenInterface;
use Symfony\Component\Security\Core\Authentication\RememberMe\TokenProviderInterface;
use Symfony\Component\Security\Core\Exception\TokenNotFoundException;

/**
* This class provides storage for the tokens that is set in "remember me"
Expand Down
2 changes: 1 addition & 1 deletion Security/User/EntityUserProvider.php
Expand Up @@ -14,8 +14,8 @@
use Doctrine\Common\Persistence\ManagerRegistry;
use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
use Symfony\Component\Security\Core\User\UserProviderInterface;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Core\User\UserProviderInterface;

/**
* Wrapper around a Doctrine ObjectManager.
Expand Down
2 changes: 1 addition & 1 deletion Test/DoctrineTestHelper.php
Expand Up @@ -14,8 +14,8 @@
use Doctrine\Common\Annotations\AnnotationReader;
use Doctrine\Common\Cache\ArrayCache;
use Doctrine\ORM\Configuration;
use Doctrine\ORM\Mapping\Driver\AnnotationDriver;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\Mapping\Driver\AnnotationDriver;
use PHPUnit\Framework\TestCase;

/**
Expand Down
Expand Up @@ -4,8 +4,8 @@

use PHPUnit\Framework\TestCase;
use Symfony\Bridge\Doctrine\DependencyInjection\CompilerPass\RegisterMappingsPass;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;

class RegisterMappingsPassTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/DependencyInjection/DoctrineExtensionTest.php
Expand Up @@ -12,8 +12,8 @@
namespace Symfony\Bridge\Doctrine\Tests\DependencyInjection;

use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;

/**
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/CompositeIntIdEntity.php
Expand Up @@ -11,9 +11,9 @@

namespace Symfony\Bridge\Doctrine\Tests\Fixtures;

use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Id;

/** @Entity */
class CompositeIntIdEntity
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/CompositeStringIdEntity.php
Expand Up @@ -11,9 +11,9 @@

namespace Symfony\Bridge\Doctrine\Tests\Fixtures;

use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Id;

/** @Entity */
class CompositeStringIdEntity
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/ContainerAwareFixture.php
Expand Up @@ -13,8 +13,8 @@

use Doctrine\Common\DataFixtures\FixtureInterface;
use Doctrine\Common\Persistence\ObjectManager;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;

class ContainerAwareFixture implements FixtureInterface, ContainerAwareInterface
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/DoubleNameEntity.php
Expand Up @@ -11,9 +11,9 @@

namespace Symfony\Bridge\Doctrine\Tests\Fixtures;

use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Id;

/** @Entity */
class DoubleNameEntity
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/DoubleNullableNameEntity.php
Expand Up @@ -11,9 +11,9 @@

namespace Symfony\Bridge\Doctrine\Tests\Fixtures;

use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Id;

/** @Entity */
class DoubleNullableNameEntity
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/GroupableEntity.php
Expand Up @@ -11,9 +11,9 @@

namespace Symfony\Bridge\Doctrine\Tests\Fixtures;

use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Id;

/** @Entity */
class GroupableEntity
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/GuidIdEntity.php
Expand Up @@ -11,9 +11,9 @@

namespace Symfony\Bridge\Doctrine\Tests\Fixtures;

use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Id;

/** @Entity */
class GuidIdEntity
Expand Down
4 changes: 2 additions & 2 deletions Tests/Fixtures/Person.php
Expand Up @@ -11,11 +11,11 @@

namespace Symfony\Bridge\Doctrine\Tests\Fixtures;

use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\DiscriminatorColumn;
use Doctrine\ORM\Mapping\DiscriminatorMap;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\InheritanceType;

/**
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/SingleAssociationToIntIdEntity.php
Expand Up @@ -11,9 +11,9 @@

namespace Symfony\Bridge\Doctrine\Tests\Fixtures;

use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\OneToOne;

/** @Entity */
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/SingleIntIdEntity.php
Expand Up @@ -11,9 +11,9 @@

namespace Symfony\Bridge\Doctrine\Tests\Fixtures;

use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Id;

/** @Entity */
class SingleIntIdEntity
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/SingleIntIdNoToStringEntity.php
Expand Up @@ -11,9 +11,9 @@

namespace Symfony\Bridge\Doctrine\Tests\Fixtures;

use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Id;

/** @Entity */
class SingleIntIdNoToStringEntity
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/SingleIntIdStringWrapperNameEntity.php
Expand Up @@ -11,9 +11,9 @@

namespace Symfony\Bridge\Doctrine\Tests\Fixtures;

use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Id;
use Symfony\Bridge\Doctrine\Tests\Fixtures\Type\StringWrapper;

/** @Entity */
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/SingleStringIdEntity.php
Expand Up @@ -11,9 +11,9 @@

namespace Symfony\Bridge\Doctrine\Tests\Fixtures;

use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Id;

/** @Entity */
class SingleStringIdEntity
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/User.php
Expand Up @@ -11,9 +11,9 @@

namespace Symfony\Bridge\Doctrine\Tests\Fixtures;

use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Id;
use Symfony\Component\Security\Core\User\UserInterface;

/** @Entity */
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/UuidIdEntity.php
Expand Up @@ -11,9 +11,9 @@

namespace Symfony\Bridge\Doctrine\Tests\Fixtures;

use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Id;

/** @Entity */
class UuidIdEntity
Expand Down
4 changes: 2 additions & 2 deletions Tests/Form/ChoiceList/ORMQueryBuilderLoaderTest.php
Expand Up @@ -11,11 +11,11 @@

namespace Symfony\Bridge\Doctrine\Tests\Form\ChoiceList;

use Doctrine\DBAL\Connection;
use Doctrine\ORM\Version;
use PHPUnit\Framework\TestCase;
use Symfony\Bridge\Doctrine\Form\ChoiceList\ORMQueryBuilderLoader;
use Symfony\Bridge\Doctrine\Test\DoctrineTestHelper;
use Doctrine\DBAL\Connection;
use Doctrine\ORM\Version;

class ORMQueryBuilderLoaderTest extends TestCase
{
Expand Down
6 changes: 3 additions & 3 deletions Tests/Form/Type/EntityTypePerformanceTest.php
Expand Up @@ -11,12 +11,12 @@

namespace Symfony\Bridge\Doctrine\Tests\Form\Type;

use Symfony\Component\Form\Test\FormPerformanceTestCase;
use Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdEntity;
use Doctrine\ORM\Tools\SchemaTool;
use Symfony\Bridge\Doctrine\Form\DoctrineOrmExtension;
use Symfony\Bridge\Doctrine\Test\DoctrineTestHelper;
use Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdEntity;
use Symfony\Component\Form\Extension\Core\CoreExtension;
use Symfony\Bridge\Doctrine\Form\DoctrineOrmExtension;
use Symfony\Component\Form\Test\FormPerformanceTestCase;

/**
* @author Bernhard Schussek <bschussek@gmail.com>
Expand Down

0 comments on commit c58c79a

Please sign in to comment.