mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
26 lines
551 B
PHP
26 lines
551 B
PHP
<?php
|
|
|
|
namespace base\admin\service;
|
|
|
|
use app\admin\service\node\Node;
|
|
|
|
class NodeServiceBase
|
|
{
|
|
/**
|
|
* 获取节点服务
|
|
* @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;
|
|
}
|
|
}
|