Application
class Application extends Application
Igniter Application Class
Properties
protected string | $extensionsPath | The base path for extensions. |
|
protected string | $themesPath | The base path for themes. |
|
protected string | $viewPath | The base path for views. |
|
protected string | $assetsPath | The base path for assets. |
|
protected string | $appContext | The request execution context (main, admin) |
|
protected string | $hasDatabase | Indicates if the application has a valid database connection and "settings" table. |
Methods
Get the path to the database directory.
Get the path to the public directory.
Get the path to the language files.
Get the path to the extensions directory.
Get the path to the themes directory.
Get the path to the themes directory.
Get the path to the app context views directory.
Register all of the base service providers.
Bind all of the application paths in the container.
Set the extensions path for the application.
Set the themes path for the application.
Set the assets path for the application.
Get the path to the storage temp directory.
Determine if we are running in the admin area.
Gets the execution context
Sets the execution context
Returns true if a database connection is present.
Register the core class aliases in the container.
Get the path to the configuration cache file.
Get the path to the routes cache file.
Get the path to the cached services.json file.
Get the path to the cached packages.php file.
Get the path to the cached packages.php file.
Details
at line 66
string
databasePath(string $path = '')
Get the path to the database directory.
at line 76
string
publicPath()
Get the path to the public directory.
at line 86
string
langPath()
Get the path to the language files.
at line 96
string
extensionsPath()
Get the path to the extensions directory.
at line 106
string
themesPath()
Get the path to the themes directory.
at line 116
string
assetsPath()
Get the path to the themes directory.
at line 126
string
viewPaths()
Get the path to the app context views directory.
at line 136
protected void
registerBaseServiceProviders()
Register all of the base service providers.
at line 150
protected void
bindPathsInContainer()
Bind all of the application paths in the container.
at line 166
$this
useExtensionsPath(string $path)
Set the extensions path for the application.
at line 181
$this
useThemesPath(string $path)
Set the themes path for the application.
at line 196
$this
useAssetsPath(string $path)
Set the assets path for the application.
at line 209
string
tempPath()
Get the path to the storage temp directory.
at line 219
bool
runningInAdmin()
Determine if we are running in the admin area.
at line 231
void
before(Closure|string $callback)
Register a "before" application filter.
at line 242
void
error(Closure $callback)
Register an application error handler.
at line 254
void
after(Closure|string $callback)
Register an "after" application filter.
at line 264
string
appContext()
Gets the execution context
at line 276
void
setAppContext(string $context)
Sets the execution context
at line 285
bool
hasDatabase()
Returns true if a database connection is present.
at line 304
void
registerCoreContainerAliases()
Register the core class aliases in the container.
at line 360
string
getCachedConfigPath()
Get the path to the configuration cache file.
at line 370
string
getCachedRoutesPath()
Get the path to the routes cache file.
at line 380
string
getCachedServicesPath()
Get the path to the cached services.json file.
at line 390
string
getCachedPackagesPath()
Get the path to the cached packages.php file.
at line 400
string
getCachedClassesPath()
Get the path to the cached packages.php file.