\myFrameApp

Class App

Summary

Methods
Properties
Constants
make()
bindParamter()
getInstance()
__construct()
run()
routerCheck()
dispatch()
controller()
No public properties found
No constants found
No protected methods found
$instances
$instance
$pathInfo
$debug
$rootPath
N/A
No private methods found
No private properties found
N/A

Properties

$instances

$instances : 

采用单例模式返回对象实例

Type

$instance

$instance : 

采用单例模式返回一个后期静态绑定的当前类对象

Type

$pathInfo

$pathInfo : 

Type

$debug

$debug : 

Type

$rootPath

$rootPath : 

Type

Methods

make()

make(  $className) 

Parameters

$className

bindParamter()

bindParamter(\ReflectionMethod  $reflectionMethod) 

Parameters

\ReflectionMethod $reflectionMethod

getInstance()

getInstance() 

__construct()

__construct() 

run()

run() 

调用dispatch,其返回一个Response对象

routerCheck()

routerCheck(  $checkStr) : array

Parameters

$checkStr

Throws

\Exception

Returns

array

dispatch()

dispatch(array  $pathInfo) : \myFrame\Response

Parameters

array $pathInfo

Throws

\ReflectionException
\Exception

Returns

\myFrame\Response

{Response}

controller()

controller(  $controllerName) : mixed

Parameters

$controllerName

Throws

\Exception

Returns

mixed