[DoctrineBundle] fixed CS, removed some use statements
This commit is contained in:
parent
aa29affc14
commit
8b244f4f5e
@ -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);
|
||||||
|
@ -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.
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Reference in New Issue
Block a user