Application
class Application extends Application
poppy Application
Properties
protected string | $executionContext | 请求执行上下文 | |
protected string | $namespace | namespace |
Methods
检测运行上下文
检测运行环境
设置运行上下文
检测数据库是否链接
Get application installation status.
Get cached config path.
No description
Get cached routes path.
Get cached packages path.
Get cached services file path.
Get the path to the bootstrap directory.
Get the path to the cached packages.php file.
Get poppy framework path or assigned path.
Get poppy module path.
绑定路径到 container
Details
at line 33
void
routeMatched(Closure $callback)
register "matched" event
at line 43
bool
runningInBackend()
检测运行上下文
at line 53
bool
isRunningIn(string $context)
检测运行环境
at line 63
void
setExecutionContext(string $context)
设置运行上下文
at line 72
bool
hasDatabase()
检测数据库是否链接
at line 87
bool
isInstalled()
Get application installation status.
at line 104
string
getCachedConfigPath()
Get cached config path.
at line 113
string
databasePath($path = '')
No description
at line 128
string
getCachedRoutesPath()
Get cached routes path.
at line 137
string
getCachedPackagesPath()
Get cached packages path.
at line 146
string
getCachedServicesPath()
Get cached services file path.
at line 157
string
bootstrapPath(string $path = '')
Get the path to the bootstrap directory.
at line 166
string
getCachedClassesPath()
Get the path to the cached packages.php file.
at line 176
string
frameworkPath(string $path = '')
Get poppy framework path or assigned path.
at line 191
string
modulePath()
Get poppy module path.
at line 200
protected void
bindPathsInContainer()
绑定路径到 container