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

string
databasePath(string $path = '')

Get the path to the database directory.

string
publicPath()

Get the path to the public directory.

string
langPath()

Get the path to the language files.

string
extensionsPath()

Get the path to the extensions directory.

string
themesPath()

Get the path to the themes directory.

string
assetsPath()

Get the path to the themes directory.

string
viewPaths()

Get the path to the app context views directory.

void
registerBaseServiceProviders()

Register all of the base service providers.

void
bindPathsInContainer()

Bind all of the application paths in the container.

$this
useExtensionsPath(string $path)

Set the extensions path for the application.

$this
useThemesPath(string $path)

Set the themes path for the application.

$this
useAssetsPath(string $path)

Set the assets path for the application.

string
tempPath()

Get the path to the storage temp directory.

bool
runningInAdmin()

Determine if we are running in the admin area.

void
before(Closure|string $callback)

Register a "before" application filter.

void
error(Closure $callback)

Register an application error handler.

void
after(Closure|string $callback)

Register an "after" application filter.

string
appContext()

Gets the execution context

void
setAppContext(string $context)

Sets the execution context

bool
hasDatabase()

Returns true if a database connection is present.

void
registerCoreContainerAliases()

Register the core class aliases in the container.

string
getCachedConfigPath()

Get the path to the configuration cache file.

string
getCachedRoutesPath()

Get the path to the routes cache file.

string
getCachedServicesPath()

Get the path to the cached services.json file.

string
getCachedPackagesPath()

Get the path to the cached packages.php file.

string
getCachedClassesPath()

Get the path to the cached packages.php file.

Details

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

Get the path to the database directory.

Parameters

string $path

Optionally, a path to append to the database path

Return Value

string

at line 76
string publicPath()

Get the path to the public directory.

Return Value

string

at line 86
string langPath()

Get the path to the language files.

Return Value

string

at line 96
string extensionsPath()

Get the path to the extensions directory.

Return Value

string

at line 106
string themesPath()

Get the path to the themes directory.

Return Value

string

at line 116
string assetsPath()

Get the path to the themes directory.

Return Value

string

at line 126
string viewPaths()

Get the path to the app context views directory.

Return Value

string

at line 136
protected void registerBaseServiceProviders()

Register all of the base service providers.

Return Value

void

at line 150
protected void bindPathsInContainer()

Bind all of the application paths in the container.

Return Value

void

at line 166
$this useExtensionsPath(string $path)

Set the extensions path for the application.

Parameters

string $path

Return Value

$this

at line 181
$this useThemesPath(string $path)

Set the themes path for the application.

Parameters

string $path

Return Value

$this

at line 196
$this useAssetsPath(string $path)

Set the assets path for the application.

Parameters

string $path

Return Value

$this

at line 209
string tempPath()

Get the path to the storage temp directory.

Return Value

string

at line 219
bool runningInAdmin()

Determine if we are running in the admin area.

Return Value

bool

at line 231
void before(Closure|string $callback)

Register a "before" application filter.

Parameters

Closure|string $callback

Return Value

void

at line 242
void error(Closure $callback)

Register an application error handler.

Parameters

Closure $callback

Return Value

void

at line 254
void after(Closure|string $callback)

Register an "after" application filter.

Parameters

Closure|string $callback

Return Value

void

at line 264
string appContext()

Gets the execution context

Return Value

string

at line 276
void setAppContext(string $context)

Sets the execution context

Parameters

string $context

Return Value

void

at line 285
bool hasDatabase()

Returns true if a database connection is present.

Return Value

bool

at line 304
void registerCoreContainerAliases()

Register the core class aliases in the container.

Return Value

void

at line 360
string getCachedConfigPath()

Get the path to the configuration cache file.

Return Value

string

at line 370
string getCachedRoutesPath()

Get the path to the routes cache file.

Return Value

string

at line 380
string getCachedServicesPath()

Get the path to the cached services.json file.

Return Value

string

at line 390
string getCachedPackagesPath()

Get the path to the cached packages.php file.

Return Value

string

at line 400
string getCachedClassesPath()

Get the path to the cached packages.php file.

Return Value

string