This commit is contained in:
2020-09-02 17:53:52 +08:00
parent 81501fca32
commit 6decf62d03
2 changed files with 30 additions and 28 deletions
+7 -1
View File
@@ -56,8 +56,14 @@ class Annotation extends BaseAnnotation
* @param $namespace
* @throws ReflectionException
*/
public function registration_notes($path, $namespace)
public function registration_notes($path = '', $namespace = '')
{
if (empty($path)) {
$path = $this->path;
}
if (empty($namespace)) {
$namespace = $this->namespace;
}
$this->scanning(rtrim($path, '/'), $namespace, get_called_class());
}