src/Command/CreateDatabaseDoctrineCommand.php 1 location
|
@@ 149-158 (lines=10) @@
|
146 |
|
* |
147 |
|
* @return string |
148 |
|
*/ |
149 |
|
private function getConnectionName(InputInterface $input): string |
150 |
|
{ |
151 |
|
$connectionName = $input->getOption('connection'); |
152 |
|
|
153 |
|
if (null !== $connectionName) { |
154 |
|
return $connectionName; |
155 |
|
} |
156 |
|
|
157 |
|
return $this->connectionRegistry->getDefaultConnectionName(); |
158 |
|
} |
159 |
|
|
160 |
|
/** |
161 |
|
* @param Connection $connection |
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 |