class Application extends Application

poppy Application

Properties

protected string $executionContext 请求执行上下文
protected string $namespace namespace

Methods

void
routeMatched(Closure $callback)

register "matched" event

bool
runningInBackend()

检测运行上下文

bool
isRunningIn(string $context)

检测运行环境

void
setExecutionContext(string $context)

设置运行上下文

bool
hasDatabase()

检测数据库是否链接

bool
isInstalled()

Get application installation status.

string
getCachedConfigPath()

Get cached config path.

string
databasePath($path = '')

No description

string
getCachedRoutesPath()

Get cached routes path.

string
getCachedPackagesPath()

Get cached packages path.

string
getCachedServicesPath()

Get cached services file path.

string
bootstrapPath(string $path = '')

Get the path to the bootstrap directory.

string
getCachedClassesPath()

Get the path to the cached packages.php file.

string
frameworkPath(string $path = '')

Get poppy framework path or assigned path.

string
modulePath()

Get poppy module path.

void
bindPathsInContainer()

绑定路径到 container

Details

at line 33
void routeMatched(Closure $callback)

register "matched" event

Parameters

Closure $callback callback

Return Value

void

at line 43
bool runningInBackend()

检测运行上下文

Return Value

bool

at line 53
bool isRunningIn(string $context)

检测运行环境

Parameters

string $context context

Return Value

bool

at line 63
void setExecutionContext(string $context)

设置运行上下文

Parameters

string $context

Return Value

void

at line 72
bool hasDatabase()

检测数据库是否链接

Return Value

bool

at line 87
bool isInstalled()

Get application installation status.

Return Value

bool

at line 104
string getCachedConfigPath()

Get cached config path.

Return Value

string

at line 113
string databasePath($path = '')

No description

Parameters

$path

Return Value

string

at line 128
string getCachedRoutesPath()

Get cached routes path.

Return Value

string

at line 137
string getCachedPackagesPath()

Get cached packages path.

Return Value

string

at line 146
string getCachedServicesPath()

Get cached services file path.

Return Value

string

at line 157
string bootstrapPath(string $path = '')

Get the path to the bootstrap directory.

Parameters

string $path

Optionally, a path to append to the bootstrap path

Return Value

string

at line 166
string getCachedClassesPath()

Get the path to the cached packages.php file.

Return Value

string

at line 176
string frameworkPath(string $path = '')

Get poppy framework path or assigned path.

Parameters

string $path path

Return Value

string

at line 191
string modulePath()

Get poppy module path.

Return Value

string

at line 200
protected void bindPathsInContainer()

绑定路径到 container

Return Value

void