src/Command/CreateDatabaseDoctrineCommand.php 1 location
|
@@ 96-105 (lines=10) @@
|
| 93 |
|
* |
| 94 |
|
* @return string |
| 95 |
|
*/ |
| 96 |
|
private function getConnectionName(InputInterface $input): string |
| 97 |
|
{ |
| 98 |
|
$connectionName = $input->getOption('connection'); |
| 99 |
|
|
| 100 |
|
if (null !== $connectionName) { |
| 101 |
|
return $connectionName; |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
return $this->connectionRegistry->getDefaultConnectionName(); |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
/** |
| 108 |
|
* @param Connection $connection |
src/Command/DropDatabaseDoctrineCommand.php 1 location
|
@@ 111-120 (lines=10) @@
|
| 108 |
|
* |
| 109 |
|
* @return string |
| 110 |
|
*/ |
| 111 |
|
private function getConnectionName(InputInterface $input): string |
| 112 |
|
{ |
| 113 |
|
$connectionName = $input->getOption('connection'); |
| 114 |
|
|
| 115 |
|
if (null !== $connectionName) { |
| 116 |
|
return $connectionName; |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
return $this->connectionRegistry->getDefaultConnectionName(); |
| 120 |
|
} |
| 121 |
|
|
| 122 |
|
/** |
| 123 |
|
* @param Connection $connection |