Lumen 快速开发工具包  v1.2.2
RouteCreator类 参考

Public 成员函数

 __construct ($name, $files=null)
 
 create ($controller_name)
 
 getPath ($name)
 

Protected 成员函数

 getNamespace ($name)
 
 populateStub ($name, $stub, $controller_name)
 

Protected 属性

 $name
 
 $files
 

构造及析构函数说明

◆ __construct()

__construct (   $name,
  $files = null 
)

ControllerCreator constructor.

参数
string$name
null$files

成员函数说明

◆ create()

create (   $controller_name)

Create a route.

参数
string$controller_name
异常

引用了 RouteCreator\populateStub().

函数调用图:

◆ getNamespace()

getNamespace (   $name)
protected

Get controller namespace from giving name.

参数
string$name
返回
string

被这些函数引用 RouteCreator\populateStub().

这是这个函数的调用关系图:

◆ getPath()

getPath (   $name)

Get file path from giving controller name.

参数
$name
返回
string

◆ populateStub()

populateStub (   $name,
  $stub,
  $controller_name 
)
protected

Populate stub.

参数
string$name
string$stub
string$resource
返回
mixed

引用了 RouteCreator\getNamespace().

被这些函数引用 RouteCreator\create().

函数调用图:
这是这个函数的调用关系图:

该类的文档由以下文件生成: