Permalink
Browse files

sorted use statements

  • Loading branch information...
1 parent 4aea73b commit a97293b3b78491bcceb88dcb1461f3b6bd2d3f97 @kriswallsmith kriswallsmith committed Dec 16, 2011
Showing with 79 additions and 80 deletions.
  1. +2 −2 Command/ClearMetadataCacheDoctrineODMCommand.php
  2. +3 −3 Command/CreateSchemaDoctrineODMCommand.php
  3. +3 −3 Command/DoctrineODMCommand.php
  4. +3 −3 Command/DropSchemaDoctrineODMCommand.php
  5. +2 −2 Command/GenerateDocumentsDoctrineODMCommand.php
  6. +3 −3 Command/GenerateHydratorsDoctrineODMCommand.php
  7. +3 −3 Command/GenerateProxiesDoctrineODMCommand.php
  8. +3 −3 Command/GenerateRepositoriesDoctrineODMCommand.php
  9. +1 −1 Command/InfoDoctrineODMCommand.php
  10. +8 −8 Command/LoadDataFixturesDoctrineODMCommand.php
  11. +3 −3 Command/QueryDoctrineODMCommand.php
  12. +1 −1 DependencyInjection/Compiler/CreateHydratorDirectoryPass.php
  13. +1 −1 DependencyInjection/Compiler/CreateProxyDirectoryPass.php
  14. +3 −3 DoctrineMongoDBBundle.php
  15. +7 −7 Form/ChoiceList/DocumentChoiceList.php
  16. +1 −1 Form/DataTransformer/DocumentToIdTransformer.php
  17. +4 −4 Form/DataTransformer/DocumentsToArrayTransformer.php
  18. +2 −2 Form/EventListener/MergeCollectionListener.php
  19. +4 −4 Form/Type/DocumentType.php
  20. +2 −2 Security/DocumentUserProvider.php
  21. +1 −1 Tests/DependencyInjection/AbstractMongoDBExtensionTest.php
  22. +2 −2 Tests/DependencyInjection/ConfigurationTest.php
  23. +1 −2 Tests/DependencyInjection/DoctrineMongoDBExtensionTest.php
  24. +1 −1 Tests/DependencyInjection/XmlMongoDBExtensionTest.php
  25. +1 −1 Tests/DependencyInjection/YamlMongoDBExtensionTest.php
  26. +2 −2 Tests/Form/ChoiceList/DocumentChoiceListTest.php
  27. +5 −5 Tests/Form/Type/DocumentTypeTest.php
  28. +1 −1 Tests/Security/DocumentUserProviderTest.php
  29. +2 −2 Tests/TestCase.php
  30. +3 −3 Tests/Validator/Constraints/UniqueValidatorTest.php
  31. +1 −1 Validator/Constraints/UniqueValidator.php
@@ -11,10 +11,10 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\Command;
-use Symfony\Component\Console\Input\InputOption;
+use Doctrine\ODM\MongoDB\Tools\Console\Command\ClearCache\MetadataCommand;
use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
-use Doctrine\ODM\MongoDB\Tools\Console\Command\ClearCache\MetadataCommand;
/**
* Command to clear the metadata cache of the various cache drivers.
@@ -11,12 +11,12 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\Command;
+use Doctrine\ODM\MongoDB\Tools\Console\Command\Schema\CreateCommand;
use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
+use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\Output;
-use Doctrine\ODM\MongoDB\Tools\Console\Command\Schema\CreateCommand;
+use Symfony\Component\Console\Output\OutputInterface;
/**
* Command to create the database schema for a set of classes based on their mappings.
@@ -11,12 +11,12 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\Command;
-use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
-use Symfony\Bundle\FrameworkBundle\Console\Application;
use Doctrine\ODM\MongoDB\Tools\Console\Helper\DocumentManagerHelper;
-use Symfony\Component\HttpKernel\Bundle\Bundle;
use Doctrine\ODM\MongoDB\Tools\DisconnectedClassMetadataFactory;
use Doctrine\ODM\MongoDB\Tools\DocumentGenerator;
+use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
+use Symfony\Bundle\FrameworkBundle\Console\Application;
+use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Base class for Doctrine ODM console commands to extend.
@@ -11,12 +11,12 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\Command;
+use Doctrine\ODM\MongoDB\Tools\Console\Command\Schema\DropCommand;
use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
+use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\Output;
-use Doctrine\ODM\MongoDB\Tools\Console\Command\Schema\DropCommand;
+use Symfony\Component\Console\Output\OutputInterface;
/**
* Command to create the database schema for a set of classes based on their mappings.
@@ -12,10 +12,10 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\Command;
use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
+use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\Output;
+use Symfony\Component\Console\Output\OutputInterface;
/**
* Generate document classes from mapping information
@@ -11,12 +11,12 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\Command;
+use Doctrine\ODM\MongoDB\Tools\Console\Command\GenerateHydratorsCommand;
use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
+use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\Output;
-use Doctrine\ODM\MongoDB\Tools\Console\Command\GenerateHydratorsCommand;
+use Symfony\Component\Console\Output\OutputInterface;
/**
* Generate the Doctrine ORM document hydrators to your cache directory.
@@ -11,12 +11,12 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\Command;
+use Doctrine\ODM\MongoDB\Tools\Console\Command\GenerateProxiesCommand;
use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
+use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\Output;
-use Doctrine\ODM\MongoDB\Tools\Console\Command\GenerateProxiesCommand;
+use Symfony\Component\Console\Output\OutputInterface;
/**
* Generate the Doctrine ORM document proxies to your cache directory.
@@ -11,12 +11,12 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\Command;
+use Doctrine\ODM\MongoDB\Tools\DocumentRepositoryGenerator;
use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
+use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\Output;
-use Doctrine\ODM\MongoDB\Tools\DocumentRepositoryGenerator;
+use Symfony\Component\Console\Output\OutputInterface;
/**
* Command to generate repository classes for mapping information.
@@ -12,8 +12,8 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\Command;
use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
/**
@@ -11,20 +11,20 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\Command;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Output\Output;
-use Symfony\Component\Finder\Finder;
-use Symfony\Component\HttpKernel\Util\Filesystem;
-use Symfony\Bundle\DoctrineFixturesBundle\Common\DataFixtures\Loader as DataFixturesLoader;
use Doctrine\Common\DataFixtures\Executor\MongoDBExecutor;
use Doctrine\Common\DataFixtures\Purger\MongoDBPurger;
use Doctrine\ODM\MongoDB\DocumentManager;
use Doctrine\ODM\MongoDB\Internal\CommitOrderCalculator;
use Doctrine\ODM\MongoDB\Mapping\ClassMetadata;
use InvalidArgumentException;
+use Symfony\Bundle\DoctrineFixturesBundle\Common\DataFixtures\Loader as DataFixturesLoader;
+use Symfony\Component\Console\Input\InputArgument;
+use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Input\InputOption;
+use Symfony\Component\Console\Output\Output;
+use Symfony\Component\Console\Output\OutputInterface;
+use Symfony\Component\Finder\Finder;
+use Symfony\Component\HttpKernel\Util\Filesystem;
/**
* Load data fixtures from bundles.
@@ -11,12 +11,12 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\Command;
+use Doctrine\ODM\MongoDB\Tools\Console\Command\QueryCommand;
use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
+use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\Output;
-use Doctrine\ODM\MongoDB\Tools\Console\Command\QueryCommand;
+use Symfony\Component\Console\Output\OutputInterface;
/**
* Execute a Doctrine MongoDB ODM query and output the results.
@@ -2,8 +2,8 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\DependencyInjection\Compiler;
-use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
+use Symfony\Component\DependencyInjection\ContainerBuilder;
class CreateHydratorDirectoryPass implements CompilerPassInterface
{
@@ -2,8 +2,8 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\DependencyInjection\Compiler;
-use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
+use Symfony\Component\DependencyInjection\ContainerBuilder;
class CreateProxyDirectoryPass implements CompilerPassInterface
{
@@ -11,13 +11,13 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle;
-use Symfony\Component\DependencyInjection\Compiler\PassConfig;
-use Symfony\Component\DependencyInjection\ContainerBuilder;
-use Symfony\Component\HttpKernel\Bundle\Bundle;
use Doctrine\Bundle\DoctrineMongoDBBundle\DependencyInjection\Compiler\CreateHydratorDirectoryPass;
use Doctrine\Bundle\DoctrineMongoDBBundle\DependencyInjection\Compiler\CreateProxyDirectoryPass;
use Doctrine\Bundle\DoctrineMongoDBBundle\DependencyInjection\Compiler\EventManagerPass;
use Doctrine\Bundle\DoctrineMongoDBBundle\DependencyInjection\DoctrineMongoDBExtension;
+use Symfony\Component\DependencyInjection\Compiler\PassConfig;
+use Symfony\Component\DependencyInjection\ContainerBuilder;
+use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Doctrine MongoDB ODM bundle.
@@ -11,16 +11,16 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\Form\ChoiceList;
-use Symfony\Component\Form\Util\PropertyPath;
-use Symfony\Component\Form\Exception\FormException;
-use Symfony\Component\Form\Exception\UnexpectedTypeException;
-use Symfony\Component\Form\Extension\Core\ChoiceList\ArrayChoiceList;
+use Doctrine\Common\Collections\Collection;
use Doctrine\ODM\MongoDB\DocumentManager;
-use Doctrine\ODM\MongoDB\Query\Builder;
-use Doctrine\ODM\MongoDB\NoResultException;
use Doctrine\ODM\MongoDB\Mapping\ClassMetadata;
+use Doctrine\ODM\MongoDB\NoResultException;
+use Doctrine\ODM\MongoDB\Query\Builder;
use Doctrine\ODM\MongoDB\UnitOfWork;
-use Doctrine\Common\Collections\Collection;
+use Symfony\Component\Form\Exception\FormException;
+use Symfony\Component\Form\Exception\UnexpectedTypeException;
+use Symfony\Component\Form\Extension\Core\ChoiceList\ArrayChoiceList;
+use Symfony\Component\Form\Util\PropertyPath;
/**
* Allows to choose from a list of documents
@@ -13,8 +13,8 @@
use Doctrine\Bundle\DoctrineMongoDBBundle\Form\ChoiceList\DocumentChoiceList;
use Symfony\Component\Form\DataTransformerInterface;
-use Symfony\Component\Form\Exception\UnexpectedTypeException;
use Symfony\Component\Form\Exception\TransformationFailedException;
+use Symfony\Component\Form\Exception\UnexpectedTypeException;
/**
* Transforms documents to ids
@@ -12,11 +12,11 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\Form\DataTransformer;
use Doctrine\Bundle\DoctrineMongoDBBundle\Form\ChoiceList\DocumentChoiceList;
-use Symfony\Component\Form\Exception\UnexpectedTypeException;
-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;
+use Symfony\Component\Form\Exception\UnexpectedTypeException;
/**
* Transforms collections into arrays of ids
@@ -11,9 +11,9 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\Form\EventListener;
-use Symfony\Component\Form\FormEvents;
-use Symfony\Component\Form\Event\FilterDataEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
+use Symfony\Component\Form\Event\FilterDataEvent;
+use Symfony\Component\Form\FormEvents;
/**
* Merge changes from the request to a Doctrine\Common\Collections\Collection instance.
@@ -11,14 +11,14 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\Form\Type;
-use Doctrine\Common\Persistence\ManagerRegistry;
-use Symfony\Component\Form\FormBuilder;
-use Symfony\Component\Form\FormFactoryInterface;
use Doctrine\Bundle\DoctrineMongoDBBundle\Form\ChoiceList\DocumentChoiceList;
-use Doctrine\Bundle\DoctrineMongoDBBundle\Form\EventListener\MergeCollectionListener;
use Doctrine\Bundle\DoctrineMongoDBBundle\Form\DataTransformer\DocumentsToArrayTransformer;
use Doctrine\Bundle\DoctrineMongoDBBundle\Form\DataTransformer\DocumentToIdTransformer;
+use Doctrine\Bundle\DoctrineMongoDBBundle\Form\EventListener\MergeCollectionListener;
+use Doctrine\Common\Persistence\ManagerRegistry;
use Symfony\Component\Form\AbstractType;
+use Symfony\Component\Form\FormBuilder;
+use Symfony\Component\Form\FormFactoryInterface;
/**
* Form type for a MongoDB document
@@ -12,10 +12,10 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\Security;
use Doctrine\ODM\MongoDB\DocumentManager;
-use Symfony\Component\Security\Core\User\UserInterface;
-use Symfony\Component\Security\Core\User\UserProviderInterface;
use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
+use Symfony\Component\Security\Core\User\UserInterface;
+use Symfony\Component\Security\Core\User\UserProviderInterface;
class DocumentUserProvider implements UserProviderInterface
{
@@ -11,9 +11,9 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\Tests\DependencyInjection;
-use Doctrine\Bundle\DoctrineMongoDBBundle\Tests\TestCase;
use Doctrine\Bundle\DoctrineMongoDBBundle\DependencyInjection\Compiler\AddValidatorNamespaceAliasPass;
use Doctrine\Bundle\DoctrineMongoDBBundle\DependencyInjection\DoctrineMongoDBExtension;
+use Doctrine\Bundle\DoctrineMongoDBBundle\Tests\TestCase;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
use Symfony\Component\DependencyInjection\Reference;
@@ -11,10 +11,10 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\Tests\DependencyInjection;
-use Symfony\Component\DependencyInjection\ContainerBuilder;
use Doctrine\Bundle\DoctrineMongoDBBundle\DependencyInjection\Configuration;
-use Symfony\Component\Yaml\Yaml;
use Symfony\Component\Config\Definition\Processor;
+use Symfony\Component\DependencyInjection\ContainerBuilder;
+use Symfony\Component\Yaml\Yaml;
class ConfigurationTest extends \PHPUnit_Framework_TestCase
{
@@ -11,10 +11,9 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\Tests\DependencyInjection;
-use Symfony\Component\DependencyInjection\ContainerBuilder;
use Doctrine\Bundle\DoctrineMongoDBBundle\DependencyInjection\DoctrineMongoDBExtension;
-
use Symfony\Component\Config\Definition\Processor;
+use Symfony\Component\DependencyInjection\ContainerBuilder;
class DoctrineMongoDBExtensionTest extends \PHPUnit_Framework_TestCase
{
@@ -11,9 +11,9 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\Tests\DependencyInjection;
+use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
-use Symfony\Component\Config\FileLocator;
class XmlMongoDBExtensionTest extends AbstractMongoDBExtensionTest
{
@@ -11,9 +11,9 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\Tests\DependencyInjection;
+use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
-use Symfony\Component\Config\FileLocator;
class YamlMongoDBExtensionTest extends AbstractMongoDBExtensionTest
{
@@ -13,9 +13,9 @@
require_once __DIR__.'/../../Fixtures/Form/Document.php';
-use Doctrine\Bundle\DoctrineMongoDBBundle\Tests\TestCase;
-use Doctrine\Bundle\DoctrineMongoDBBundle\Tests\Fixtures\Form\Document;
use Doctrine\Bundle\DoctrineMongoDBBundle\Form\ChoiceList\DocumentChoiceList;
+use Doctrine\Bundle\DoctrineMongoDBBundle\Tests\Fixtures\Form\Document;
+use Doctrine\Bundle\DoctrineMongoDBBundle\Tests\TestCase;
class DocumentChoiceListTest extends TestCase
{
@@ -14,13 +14,13 @@
//require_once __DIR__.'/../../TestCase.php';
require_once __DIR__.'/../../Fixtures/Form/Document.php';
-use Symfony\Component\Form\Exception\UnexpectedTypeException;
-use Symfony\Tests\Component\Form\Extension\Core\Type\TypeTestCase;
-use Doctrine\Bundle\DoctrineMongoDBBundle\Tests\TestCase;
-use Doctrine\Bundle\DoctrineMongoDBBundle\Tests\Fixtures\Form\Document;
use Doctrine\Bundle\DoctrineMongoDBBundle\Form\DoctrineMongoDBExtension;
-use Doctrine\ODM\MongoDB\DocumentManager;
+use Doctrine\Bundle\DoctrineMongoDBBundle\Tests\Fixtures\Form\Document;
+use Doctrine\Bundle\DoctrineMongoDBBundle\Tests\TestCase;
use Doctrine\Common\Collections\ArrayCollection;
+use Doctrine\ODM\MongoDB\DocumentManager;
+use Symfony\Component\Form\Exception\UnexpectedTypeException;
+use Symfony\Tests\Component\Form\Extension\Core\Type\TypeTestCase;
/**
* Tests for DocumentType
Oops, something went wrong.

0 comments on commit a97293b

Please sign in to comment.