1
This commit is contained in:
24
app/admin/service/NodeService.php
Normal file
24
app/admin/service/NodeService.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\service;
|
||||
|
||||
|
||||
use app\admin\service\auth\Node;
|
||||
|
||||
class NodeService
|
||||
{
|
||||
|
||||
/**
|
||||
* 获取节点服务
|
||||
* @return array
|
||||
* @throws \Doctrine\Common\Annotations\AnnotationException
|
||||
* @throws \ReflectionException
|
||||
*/
|
||||
public function getNodeList()
|
||||
{
|
||||
$basePath = base_path() . 'admin' . DIRECTORY_SEPARATOR . 'controller';
|
||||
$baseNamespace = "app\admin\controller";
|
||||
$nodeList = (new Node($basePath, $baseNamespace))->getNodeList();
|
||||
return $nodeList;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user