[DoctrineBundle] fixed CS, removed some use statements

This commit is contained in:
Fabien Potencier 2011-05-01 21:30:19 +02:00
parent aa29affc14
commit 8b244f4f5e
7 changed files with 7 additions and 23 deletions

View File

@ -11,13 +11,10 @@
namespace Symfony\Bundle\DoctrineBundle\Command; namespace Symfony\Bundle\DoctrineBundle\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Output\Output; use Doctrine\DBAL\DriverManager;
use Symfony\Component\HttpKernel\Util\Filesystem;
use Doctrine\DBAL\Connection;
/** /**
* Database tool allows you to easily drop and create your configured databases. * Database tool allows you to easily drop and create your configured databases.
@ -50,11 +47,11 @@ EOT
$connection = $this->getDoctrineConnection($input->getOption('connection')); $connection = $this->getDoctrineConnection($input->getOption('connection'));
$params = $connection->getParams(); $params = $connection->getParams();
$name = isset($params['path']) ? $params['path']:$params['dbname']; $name = isset($params['path']) ? $params['path'] : $params['dbname'];
unset($params['dbname']); unset($params['dbname']);
$tmpConnection = \Doctrine\DBAL\DriverManager::getConnection($params); $tmpConnection = DriverManager::getConnection($params);
try { try {
$tmpConnection->getSchemaManager()->createDatabase($name); $tmpConnection->getSchemaManager()->createDatabase($name);

View File

@ -11,13 +11,9 @@
namespace Symfony\Bundle\DoctrineBundle\Command; namespace Symfony\Bundle\DoctrineBundle\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Output\Output;
use Symfony\Component\HttpKernel\Util\Filesystem;
use Doctrine\DBAL\Connection;
/** /**
* Database tool allows you to easily drop and create your configured databases. * Database tool allows you to easily drop and create your configured databases.

View File

@ -15,7 +15,6 @@ use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Output\Output;
/** /**
* Generate entity classes from mapping information * Generate entity classes from mapping information

View File

@ -15,9 +15,7 @@ use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Output\Output;
use Doctrine\ORM\Tools\Export\ClassMetadataExporter; use Doctrine\ORM\Tools\Export\ClassMetadataExporter;
use Doctrine\ORM\Tools\EntityGenerator;
use Doctrine\ORM\Mapping\ClassMetadataInfo; use Doctrine\ORM\Mapping\ClassMetadataInfo;
/** /**

View File

@ -15,7 +15,6 @@ use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Output\Output;
use Doctrine\ORM\Tools\EntityRepositoryGenerator; use Doctrine\ORM\Tools\EntityRepositoryGenerator;
/** /**

View File

@ -15,10 +15,6 @@ use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Output\Output;
use Doctrine\ORM\Tools\Console\Command\ConvertMappingCommand;
use Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper;
use Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper;
use Doctrine\ORM\Mapping\Driver\DatabaseDriver; use Doctrine\ORM\Mapping\Driver\DatabaseDriver;
use Doctrine\ORM\Tools\DisconnectedClassMetadataFactory; use Doctrine\ORM\Tools\DisconnectedClassMetadataFactory;
use Doctrine\ORM\Tools\Export\ClassMetadataExporter; use Doctrine\ORM\Tools\Export\ClassMetadataExporter;

View File

@ -12,7 +12,6 @@
namespace Symfony\Bundle\DoctrineBundle\Command; namespace Symfony\Bundle\DoctrineBundle\Command;
use Doctrine\ORM\Mapping\MappingException; use Doctrine\ORM\Mapping\MappingException;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;