Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
Flarum
Foundation
Application
runningInConsole
Flarum\Foundation\Application::runningInConsole PHP Method
Application Class Documentation
显示文件
Open project: flarum/core
runningInConsole()
public
method
Determine if we are running in the console.
public
runningInConsole
( ) :
boolean
return
boolean
public function runningInConsole() { return php_sapi_name() == 'cli'; }
Application
__construct
addDeferredServices
basePath
bindPathsInContainer
boot
bootProvider
booted
booting
bound
config
environment
fireAppCallbacks
flush
getCachedCompilePath
getCachedServicesPath
getDeferredServices
getLoadedProviders
getProvider
inDebugMode
isBooted
isDeferredService
isDownForMaintenance
isInstalled
isUpToDate
loadDeferredProvider
loadDeferredProviders
make
markAsRegistered
publicPath
register
registerBaseBindings
registerBaseServiceProviders
registerConfiguredProviders
registerCoreContainerAliases
registerDeferredProvider
resolveProviderClass
runningInConsole
runningUnitTests
setBasePath
setDeferredServices
setPublicPath
storagePath
url
useStoragePath
version