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 |
src/Command/DropDatabaseDoctrineCommand.php 1 location
|
@@ 114-123 (lines=10) @@
|
111 |
|
* |
112 |
|
* @return string |
113 |
|
*/ |
114 |
|
private function getConnectionName(InputInterface $input): string |
115 |
|
{ |
116 |
|
$connectionName = $input->getOption('connection'); |
117 |
|
|
118 |
|
if (null !== $connectionName) { |
119 |
|
return $connectionName; |
120 |
|
} |
121 |
|
|
122 |
|
return $this->connectionRegistry->getDefaultConnectionName(); |
123 |
|
} |
124 |
|
|
125 |
|
/** |
126 |
|
* @param Connection $connection |