Skip to content

Commit 5e778b7

Browse files
committed
Update CmdTrait.php
1 parent 4a96958 commit 5e778b7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Ubiquity/devtools/cmd/traits/CmdTrait.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33

44
use Ubiquity\devtools\cmd\ConsoleFormatter;
55
use Ubiquity\cache\CacheManager;
6+
use Ubiquity\domains\DDDManager;
67
use Ubiquity\devtools\cmd\Console;
78
use Ubiquity\utils\base\UString;
9+
use Ubiquity\controllers\Startup;
810

911
trait CmdTrait {
1012

@@ -132,5 +134,12 @@ protected static function getSelectedModels($models, $config) {
132134
}
133135
return null;
134136
}
137+
138+
protected static function updateDomain($options) {
139+
$domain = self::getOption($options, 'o', 'domain', '');
140+
if ($domain != '') {
141+
DDDManager::setDomain($domain);
142+
}
143+
}
135144
}
136145

0 commit comments

Comments
 (0)