mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 23:42:48 +08:00
37 lines
1.0 KiB
PHP
37 lines
1.0 KiB
PHP
<?php
|
||
|
||
// +----------------------------------------------------------------------
|
||
// | EasyAdmin
|
||
// +----------------------------------------------------------------------
|
||
// | PHP交流群: 763822524
|
||
// +----------------------------------------------------------------------
|
||
// | 开源协议 https://mit-license.org
|
||
// +----------------------------------------------------------------------
|
||
// | github开源项目:https://github.com/zhongshaofa/EasyAdmin
|
||
// +----------------------------------------------------------------------
|
||
|
||
namespace app\admin\service;
|
||
|
||
|
||
use EasyAdmin\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;
|
||
}
|
||
} |