改名
This commit is contained in:
@@ -86,9 +86,11 @@ class Annotation extends Component
|
|||||||
*/
|
*/
|
||||||
public function runtime(string $dir, string|array $outPath = '')
|
public function runtime(string $dir, string|array $outPath = '')
|
||||||
{
|
{
|
||||||
// if (!empty($outPath) && !is_array($outPath)) {
|
if (empty($outPath)) {
|
||||||
// $outPath = [$outPath];
|
$outPath = [];
|
||||||
// }
|
} else if (is_string($outPath)) {
|
||||||
|
$outPath = [$outPath];
|
||||||
|
}
|
||||||
$this->_loader->loadByDirectory($dir, $outPath);
|
$this->_loader->loadByDirectory($dir, $outPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user