Skip to content

Commit 2b64431

Browse files
committed
Auto register route for swagger component.
1 parent ead7678 commit 2b64431

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Annotation/AnnotationCollector.php

+5
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ public static function getClassAnnotation(string $class, string $annotation)
8484
return static::get($class . '._c.' . $annotation);
8585
}
8686

87+
public static function getClassAnnotations(string $class)
88+
{
89+
return static::get($class . '._c');
90+
}
91+
8792
public static function getClassMethodAnnotation(string $class, string $method)
8893
{
8994
return static::get($class . '._m.' . $method);

0 commit comments

Comments
 (0)