NodeService.php 542 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace app\admin\service;
  3. use app\admin\service\auth\Node;
  4. class NodeService
  5. {
  6. /**
  7. * 获取节点服务
  8. * @return array
  9. * @throws \Doctrine\Common\Annotations\AnnotationException
  10. * @throws \ReflectionException
  11. */
  12. public function getNodeList()
  13. {
  14. $basePath = base_path() . 'admin' . DIRECTORY_SEPARATOR . 'controller';
  15. $baseNamespace = "app\admin\controller";
  16. $nodeList = (new Node($basePath, $baseNamespace))->getNodeList();
  17. return $nodeList;
  18. }
  19. }