src/Command/CreateDatabaseDoctrineCommand.php 1 location
|
@@ 147-156 (lines=10) @@
|
| 144 |
|
* |
| 145 |
|
* @return string |
| 146 |
|
*/ |
| 147 |
|
private function getConnectionName(InputInterface $input): string |
| 148 |
|
{ |
| 149 |
|
$connectionName = $input->getOption('connection'); |
| 150 |
|
|
| 151 |
|
if ('' !== $connectionName) { |
| 152 |
|
return $connectionName; |
| 153 |
|
} |
| 154 |
|
|
| 155 |
|
return $this->connectionRegistry->getDefaultConnectionName(); |
| 156 |
|
} |
| 157 |
|
|
| 158 |
|
/** |
| 159 |
|
* @param Connection $connection |
src/Command/DropDatabaseDoctrineCommand.php 1 location
|
@@ 171-180 (lines=10) @@
|
| 168 |
|
* |
| 169 |
|
* @return string |
| 170 |
|
*/ |
| 171 |
|
private function getConnectionName(InputInterface $input): string |
| 172 |
|
{ |
| 173 |
|
$connectionName = $input->getOption('connection'); |
| 174 |
|
|
| 175 |
|
if ('' !== $connectionName) { |
| 176 |
|
return $connectionName; |
| 177 |
|
} |
| 178 |
|
|
| 179 |
|
return $this->connectionRegistry->getDefaultConnectionName(); |
| 180 |
|
} |
| 181 |
|
|
| 182 |
|
/** |
| 183 |
|
* @param Connection $connection |