We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47b8762 commit b24ca94Copy full SHA for b24ca94
webfiori/framework/cli/helpers/CreateAPITestCase.php
@@ -76,8 +76,13 @@ private function readManagerInfo() : bool {
76
$instance = null;
77
78
if ($m !== null) {
79
- if (class_exists($m)) {
80
- $instance = new $m();
+ if (class_exists($m, false)) {
+ try {
81
+ $instance = new $m();
82
+ } catch (\Throwable $ex) {
83
+ $this->error("The argument --manager has invalid value.");
84
+ return false;
85
+ }
86
87
if ($instance instanceof WebServicesManager) {
88
$this->writer->setServicesManager($instance);
@@ -108,6 +113,7 @@ private function readManagerInfo() : bool {
108
113
}
109
114
110
115
116
111
117
112
118
private function readServiceInfo() : bool {
119
$selected = $this->getCommand()->getArgValue('--service');
0 commit comments