eee
This commit is contained in:
+1
-1
@@ -352,6 +352,7 @@ class Scanner extends Component
|
|||||||
*/
|
*/
|
||||||
private function analyzeClassMethods(ReflectionClass $reflect, string $class): void
|
private function analyzeClassMethods(ReflectionClass $reflect, string $class): void
|
||||||
{
|
{
|
||||||
|
var_dump($reflect->getName());
|
||||||
foreach ($reflect->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
|
foreach ($reflect->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
|
||||||
// 跳过静态方法和继承的方法
|
// 跳过静态方法和继承的方法
|
||||||
if ($method->isStatic() || $method->getDeclaringClass()->getName() !== $class) {
|
if ($method->isStatic() || $method->getDeclaringClass()->getName() !== $class) {
|
||||||
@@ -367,7 +368,6 @@ class Scanner extends Component
|
|||||||
*/
|
*/
|
||||||
private function processMethodAttributes(ReflectionMethod $method, string $class): void
|
private function processMethodAttributes(ReflectionMethod $method, string $class): void
|
||||||
{
|
{
|
||||||
var_dump($class);
|
|
||||||
foreach ($method->getAttributes() as $attribute) {
|
foreach ($method->getAttributes() as $attribute) {
|
||||||
$attributeName = $attribute->getName();
|
$attributeName = $attribute->getName();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user