You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.0 KiB
37 lines
1.0 KiB
<?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;
|
|
}
|
|
}
|