src/Command/DropDatabaseDoctrineCommand.php 1 location
|
@@ 173-182 (lines=10) @@
|
170 |
|
* |
171 |
|
* @return string |
172 |
|
*/ |
173 |
|
private function getConnectionName(InputInterface $input): string |
174 |
|
{ |
175 |
|
$connectionName = $input->getOption('connection'); |
176 |
|
|
177 |
|
if (null !== $connectionName) { |
178 |
|
return $connectionName; |
179 |
|
} |
180 |
|
|
181 |
|
return $this->connectionRegistry->getDefaultConnectionName(); |
182 |
|
} |
183 |
|
|
184 |
|
/** |
185 |
|
* @param Connection $connection |
src/Command/CreateDatabaseDoctrineCommand.php 1 location
|
@@ 98-107 (lines=10) @@
|
95 |
|
* |
96 |
|
* @return string |
97 |
|
*/ |
98 |
|
private function getConnectionName(InputInterface $input): string |
99 |
|
{ |
100 |
|
$connectionName = $input->getOption('connection'); |
101 |
|
|
102 |
|
if (null !== $connectionName) { |
103 |
|
return $connectionName; |
104 |
|
} |
105 |
|
|
106 |
|
return $this->connectionRegistry->getDefaultConnectionName(); |
107 |
|
} |
108 |
|
|
109 |
|
/** |
110 |
|
* @param Connection $connection |